Artillery is a load-testing toolkit for protocol scenarios and browser workflows using Playwright. Tests can combine declarative configuration with JavaScript or TypeScript, and its distributed execution features run generators in supported cloud environments.[1][2]
Arrival-based scenarios
Artillery models load as phases that create virtual users at configured arrival rates. Each user runs a scenario with its own state, connections and cookies where applicable. Moving to the next phase does not wait for earlier users to finish, so total test duration can exceed the combined phase lengths. This distinction matters when translating a concurrency-based test: arrival rate and the number of simultaneously active users are different quantities.[3]
Browser and protocol coverage
HTTP, WebSocket and Socket.IO scenarios cover service interactions, while the built-in Playwright engine launches headless browsers and collects frontend measurements such as first and largest contentful paint. Browser definitions can be written fully in TypeScript or combine YAML configuration with JavaScript or TypeScript functions. Choosing an engine changes what is being measured; protocol request timings and rendered-page metrics are not interchangeable results.[2][3]
Automated performance gates
The ensure extension evaluates metrics against thresholds or conditional expressions and can return a nonzero exit code when a required condition fails. Conditions marked non-strict are optional and do not fail the process. A nonexistent metric name also fails its check, making configuration review important when adding a CI gate or changing the engine that emits the metrics.[4]
Distribution and licensing
The repository describes most code as MPL-2.0, with certain Azure modules under a Business Source License requiring commercial licensing for commercial or production use. Distributed AWS execution runs in the team's own account, bundles scripts and dependencies, provisions workers and aggregates their results. The software's distribution support should not be mistaken for an allowance of free cloud infrastructure; account resources and permissions remain operational considerations.[1][5]
Substitution scope
Artillery can substitute for Grafana k6 for code-managed web load testing, particularly where Node.js-based customization or Playwright scenarios fit an existing workflow. Both cover protocol and browser testing, but their scripts, runtime APIs and workload definitions differ. This is an assessment of overlapping tasks, not a verified converter or benchmark. Migration should reconcile arrival phases, browser behavior, metric names and required cloud deployment terms.[2][3][6][7]
Capabilities & limitations
Protocol and browser load
supported
Protocol engines coexist with built-in Playwright browser scenarios.[1][2]
Web protocol and browser load testing · Node.js environments, AWS, Azure · Version, plan and platform requirements apply