# Artillery

Protocol and Playwright browser load testing with programmable scenarios and cloud distribution\.

ID: Q802 · Revision: 850

Type: software · License: MPL\-2\.0 for most code; BSL/commercial terms for some Azure modules[^artillery-readme] · Status: active

Website: https://www.artillery.io/



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\.[^artillery-readme][^artillery-browser]

## 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\.[^artillery-concepts]

## 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\.[^artillery-concepts][^artillery-browser]

## 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\.[^artillery-ensure]

## 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\.[^artillery-readme][^artillery-dist]

## Substitution scope

Artillery can substitute for [Grafana k6](/grafanak6) 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\.[^artillery-concepts][^artillery-browser][^k6-readme][^k6-browser]

## Capabilities and substitutions

### Protocol and browser load — supported

Protocol engines coexist with built\-in Playwright browser scenarios\.[^artillery-readme][^artillery-browser]

Use case: Web protocol and browser load testing · Platforms: Node\.js environments, AWS, Azure · Region: Version, plan and platform requirements apply

### Metric\-based CI gates — supported

Required ensure conditions fail the process; non\-strict conditions are optional\.[^artillery-ensure]

Use case: Web protocol and browser load testing · Platforms: Node\.js environments, AWS, Azure · Region: Version, plan and platform requirements apply

### Cloud distribution — limited

Own\-account cloud execution; some Azure modules require commercial licensing for production\.[^artillery-readme][^artillery-dist]

Use case: Web protocol and browser load testing · Platforms: Node\.js environments, AWS, Azure · Region: Version, plan and platform requirements apply

### [Substitute for Grafana k6](/grafanak6) — limited

Can replace web performance\-test workflows with Artillery scenarios; runtime APIs, workload models and cloud/license requirements differ\.[^artillery-browser][^artillery-concepts][^k6-readme]

Use case: Web protocol and browser load testing · Platforms: Node\.js environments, AWS, Azure · Region: Version, plan and platform requirements apply

## References

[^artillery-readme]: [Artillery repository](<https://github.com/artilleryio/artillery/blob/main/README.md>) — Features, MPL\-2\.0 and Azure BSL modules (vendor; retrieved 2026-10-07T11:03:40Z)

[^artillery-browser]: [Artillery Playwright engine](<https://www.artillery.io/docs/reference/engines/playwright>) — TypeScript/YAML tests and frontend metrics (vendor; retrieved 2026-10-07T11:03:49Z)

[^artillery-concepts]: [Artillery core concepts](<https://www.artillery.io/docs/get-started/core-concepts>) — Arrival phases, independent users and test lifecycle (vendor; retrieved 2026-10-07T11:03:40Z)

[^artillery-ensure]: [Artillery ensure assertions](<https://www.artillery.io/docs/reference/extensions/ensure>) — Strict and optional conditions; nonzero exits (vendor; retrieved 2026-10-07T11:03:49Z)

[^artillery-dist]: [Artillery distributed execution](<https://www.artillery.io/docs/load-testing-at-scale>) — Own\-account resources, bundling and supported runtimes (vendor; retrieved 2026-10-07T11:04:22Z)

[^k6-readme]: [Grafana k6 repository](<https://github.com/grafana/k6/blob/master/README.md>) — Features, cloud integration and AGPL\-3\.0 (vendor; retrieved 2026-10-07T11:03:29Z)

[^k6-browser]: [First k6 browser test](<https://grafana.com/docs/k6/latest/using-k6-browser/write-your-first-browser-test/>) — Chromium prerequisites and separate JavaScript runtime (vendor; retrieved 2026-10-07T11:03:21Z)

Source revision: https://substitutefor.net/entities/Q802?revision=850
