What is Artillery?
Artillery is a modern load testing tool written in Node.js. It supports HTTP, WebSocket, Socket.io, and GraphQL. Configured with YAML, it simulates complex traffic scenarios.
Installation
npm install -g artillery
Basic configuration
config:
target: "http://localhost:3000"
phases:
- duration: 60
arrivalRate: 10
scenarios:
- flow:
- get:
url: "/api/products"
- think: 2
- get:
url: "/api/users/1"
Complex scenarios
Chain requests, extract data from responses, and use them in subsequent requests.
Reports
artillery run test.yml --output report.json
artillery report report.json
Artillery vs k6
Artillery is easier to set up (YAML vs JavaScript) but less flexible than k6. Ideal for teams wanting quick load testing without complex code.
Want load testing for your project? At Vynta we simulate traffic to validate your infrastructure.