Artillery

Load tests APIs and applications with Artillery, supporting HTTP, WebSocket, and Socket.io.

ssrjkk Updated 2 repo stars

File contents

Artillery

Cloud-scale load testing with YAML configuration.

Quick Start

config:
  target: "https://api.example.com"
  phases: [{ duration: 60, arrivalRate: 5, rampTo: 20, name: "Warm up" }]
scenarios:
  - flow:
      - get: { url: "/api/users" }
      - post: { url: "/api/users", json: { name: "Alice" } }
artillery run config.yaml

WebSocket Testing

scenarios:
  - engine: "ws"
    flow: [{ connect: "ws://localhost:8080" }, { send: '{"event": "join", "room": "general"}' }]

When to Use

  • API load testing; WebSocket perf testing; CI/CD performance gates

Validation

  1. Artillery runs and produces metrics; 2. Response times tracked; 3. p50/p95/p99 shown

ssrjkk/claude-skills/tree/main/.claude/skills/qa/artillery commit f95a3bfaf3

Frequently asked questions

npx skillmds@latest add ssrjkk/artillery