Run and analyse tests
Test configuration
Load models, thresholds, profiles.
A test configuration says how much load to apply to a scenario and when a test passes. A scenario can have several (smoke, load, stress...). Edit it in the visual editor or as JSON; both stay in sync and validate live.

Profiles
When you create a configuration, start from a profile:
| Profile | Shape |
|---|---|
| smoke | a handful of users for a short time: does the scenario work? |
| load | the expected normal load held for a while |
| stress | beyond normal load to find the limits |
| spike | a sudden jump and drop |
| soak | normal load for hours to find leaks |
| breakpoint | load increasing until the system breaks (see the breakpoint in Analysis) |
Load models (executors)
Choose one or more per scenario flow:
- constant VUs and ramping VUs: a number of concurrent virtual users (closed model);
- constant arrival rate and ramping arrival rate: a number of iterations per second whatever the response time (open model, closer to real traffic);
- per-VU iterations and shared iterations: a fixed amount of work.
The editor draws a timeline of all workloads and an editable stage curve. For arrival-rate models set the pre-allocated and maximum virtual users.
To share one load between flows in percent instead, choose Workload mix in the Load block: see Workload mix.
Thresholds
Pass/fail rules, for example http_req_duration p(95) < 500 ms, http_req_failed rate < 1 %. Pick the metric, the
aggregation, optional tag filters (an endpoint, a group), and whether a failing threshold aborts the test (with an
optional delay before evaluation). Swarmetry evaluates thresholds on the server with the test engine's semantics and shows the
verdict, also when the load comes from several countries (global thresholds); see what each verdict means in
Running tests. A threshold that aborts the test stops it within about 10 seconds of
crossing its limit: Swarmetry checks the thresholds every 5 seconds on measurements 3 to 4 seconds old. On the built-in
location the test engine also stops the test by itself, within 2 seconds.
Other options
Custom metrics, tags, DNS and host overrides, TLS settings, client certificates (by secret name), tracing sampling
(adds a W3C traceparent header so traces can be correlated, see Observability).
User-Agent
Every request of a test says who sends it, in its User-Agent header. By default it is the platform's own, for example
Swarmetry (+https://swarmetry.io) (your administrator may have set another name), so the team of the tested site can
recognise the traffic and knows whom to ask. In the Options block, field User-Agent, choose:
- Default (Swarmetry): the platform's User-Agent;
- No User-Agent header: the requests send none;
- Custom: your own value, for example the one a firewall of your site lets through (plain ASCII characters, 512 at most, no accented letter, no space at the start or the end).
In JSON the field is userAgent: absent for the default, "" for no header, or your value. A User-Agent header you set
on a request (in the step or in the environment's headers) still wins for that request. Browser steps keep the browser's
own User-Agent; change it in the browser settings of the scenario.
Changed in this version: tests that keep the default now send the platform's User-Agent instead of the test engine's. If a rule of your firewall, your CDN or your analytics matched the old value, update the rule or choose Custom. Free scripts set theirs in the script: see Scenarios.
Configurations are versioned against the scenario: issues are reported when they no longer match its steps.
The warnings and notes of the configuration (no threshold, too few virtual users for an arrival rate, a dataset that may run out...) are listed under the editor with their quick fixes — see Problems and quick fixes.