Know your release will hold before your customers find out it won't.
Headroom plans, records, runs and reports performance tests end to end, from a 10-user smoke test to a million-user tier, and turns the results into a go/no-go decision with owned actions.
Illustration; figures are not from a real system.
One pipeline from a recorded journey to a release decision
Every step can run by hand, in one Autopilot click, or headless in CI. Results feed straight into the next step, so nothing is copied between tools.
Record
Drop a HAR from Chrome, Charles or Proxyman. Tokens are correlated and credentials parameterised automatically.
Model
Little's Law and a queueing model size every tier and name the first bottleneck before you run anything.
Generate
Plans for the built-in engine, plus k6, JMeter, Locust, Kubernetes and CI scripts, from the same inputs and gates.
Execute
The built-in engine streams live metrics, splits load across machines and records generator health.
Analyse
Steady-state windows, gates, workload accuracy and findings in three categories, automatically.
Decide
An executive verdict, a full QE and engineering report, Jira-ready actions and a webhook to your channel.
Built for the questions release meetings actually ask
Autopilot, end to end
Pre-flight, tiers in order with gates, model calibration, breaking-point search, comparison, report and notification from one click, or from node headroom-runner.mjs autopilot in CI.
From 100s to 1 million users
A built-in multi-core engine runs closed and open (arrival-rate) models with cookies, redirects, CSV data and connection timing. No k6, JMeter or Locust needed; spread load across many runners.
Reports people can act on
A one-page executive verdict with customer impact and owned decisions, plus an 18-section QE and engineering report with SLAs, statistics, errors and bottleneck analysis.
Honest numbers
Every figure is labelled modeled, measured or demo. Percentiles come from ±1% histograms over successful requests in the steady state, and each run gets a 0–100 confidence score.
Findings, not just charts
Automatic detection of throughput limits, error onset, latency growth, long tails, mix drift, short windows and hot load generators, each with an owner and a next step.
Ask AI, on your models
Questions about plans and results go through your LiteLLM proxy, grounded in the project data, with the key kept on the runner and the context you send always visible.
The executive gets a decision. Engineering gets the evidence.
- Verdict with the reason: GO, CONDITIONAL GO or NO-GO, downgraded automatically when the test itself is not trustworthy.
- Customer impact: the share of each critical transaction slower than its target or failed.
- Capacity in one sentence: measured users within SLO, where the first breach starts, and the modeled ceiling.
- Owned actions: ranked, with effort and expected result, copied to Jira as CSV in one click.
- Full engineering detail: SLA goal vs actual, min to p99 statistics, response-time ranges, errors by code, timelines, generator health and release comparison.
- 6.4% of Checkout requests took longer than 1.2 s or failed.
- Errors begin at about 41k users (503 and 504).
- Raise the order database cache hit rate to 82% · DBA · P1.
Illustrative figures, not from a real system.
One workspace, three audiences
Performance and QE engineers
Workload models, recorded journeys, gates, distributed runs and the full statistics, without stitching tools together.
Engineering and SRE teams
The bottleneck, the load where it starts, the server metric that tracks it, and what to change, with owners.
Delivery leads and executives
A clear go/no-go with the confidence behind it, customer impact in plain words, and the decisions needed.
Two files. Your infrastructure. Your data.
The app is one static page. The runner is one Node script with no packages to install and its own load engine, so no k6, JMeter or Locust. Results, keys and recordings stay with you.
# 1. host the app
npx wrangler pages deploy headroom --project-name headroom # folder with index.html
# 2. start a runner (Node 18+; nothing else to install)
HEADROOM_TOKEN=secret ALLOW_ORIGIN=https://perf.example.com \
node headroom-runner.mjs
# 3. automate it in CI
node headroom-runner.mjs autopilot perf/headroom-plan.json --out perf-results
Exit code 1 when a Blocker gate fails, so the pipeline stops the release.
See your next release's headroom today
Open the app with demo data to explore every screen, then point a runner at your staging environment.
Headroom documentation
Headroom plans, records, runs and reports performance tests end to end for web, mobile and API traffic. This guide covers setup, every screen, the runner, automation, and how each number is calculated.
Quick start
- Open the app. It starts in Demo data mode with an e-commerce template and three synthetic runs, so every screen has something to show.
- Pick a template on Customize (e-commerce, banking, SaaS API, public portal) or edit the example on Inputs.
- Host the app yourself and start a runner (below). Runners need only Node 18+; the built-in engine replaces k6, JMeter and Locust. The claude.ai preview blocks network calls, so execution and AI need the self-hosted copy.
- On Execute, connect the runner, tick the authorisation box, and press Run Autopilot.
- Switch the header to Real data and open Report.
# host the app (any static host works)
npx wrangler pages deploy headroom --project-name headroom # folder with index.html
# start a runner on your machine or a load-generator host
HEADROOM_TOKEN=choose-a-secret ALLOW_ORIGIN=https://headroom.example.com node headroom-runner.mjs
Load test only systems you are authorised to test. Headroom asks you to confirm this before every run, and the runner refuses runs without it.
Core concepts
| Term | Meaning |
|---|---|
| Channel | A traffic source such as Web, Mobile app or API, with its share of load, think time, calls per step, response size, network delay and CDN offload. |
| Transaction | A named request in the mix. Critical transactions get their own p95 targets and gates. |
| Tier | A test phase with a type (smoke, baseline, load, stress, spike, soak, scalability, volume, failover, breakpoint), a target and a load profile. |
| Load model | Users (closed): concurrent users with think time. Requests/s (open): a fixed arrival rate that a slow system cannot reduce. |
| Profile | Comma-separated duration percent steps, for example 5m 10, 5m 25, 30m 100, 3m 0. |
| Quality gate | A pass/fail rule on p95, p99, average, errors, Apdex, throughput or workload achieved, for the whole run, critical transactions or every transaction, as Blocker, Major or Minor. |
| Basis | Every figure is labelled Modeled, Measured, Sample (demo) or Practice. |
Inputs
All lists are editable tables: add, duplicate or remove rows. Changes recalculate the agent readout at the top immediately, and each tier card has a load slider from 1 to 10 million.
Architecture components
Each component has a kind (gateway, service, cache, database, connection pool, queue or third party), min and max instances, capacity per instance, service time and visits per request. Visits are net of caching: 1.5 queries per request with a 30% cache miss rate is 0.45. A pool's capacity is connections per instance of the first service. Components autoscale between min and max at the target utilisation set under Service levels.
Service levels and gates
Global targets apply unless a transaction has its own p95. A failed Blocker gate fails the run; a failed Major makes it conditional. Gates become k6 thresholds, CI gates and the report's SLA section.
Recording journeys
- Web: Chrome DevTools, Network, tick Preserve log, walk the journey with natural pauses, right-click, Save all as HAR with content.
- Mobile app: route the device through Charles, Proxyman or Fiddler with HTTPS decryption, run the journey, export the session as HAR.
- API: export a HAR from Postman, Insomnia or gateway logs.
On Record, drop the file, untick analytics hosts (pre-unticked), and press Build journey. Headroom then:
- groups requests into steps by page or by gaps over 1.2 s, and keeps the recorded think times;
- drops cookies (the engines keep their own jar) and browser-only headers;
- correlates values returned in JSON responses (tokens, IDs, CSRF values) and replays them in later requests;
- turns Authorization headers into
AUTH_TOKENand login credentials intoUSERNAMEandPASSWORD; passwords are never stored.
Values in HTML bodies, response headers or redirects are not correlated automatically; add them to the k6 script by hand.
Workload model
Throughput per channel follows Little's Law: req/s = users × calls per step ÷ (think time + response time). Each component is modeled as a queue: utilisation = load ÷ (instances × capacity), and waiting time grows as utilisation nears 100%. The model page shows the p95 curve against users, component utilisation per tier, generator nodes and bandwidth, unique test accounts, and the execution plan with entry and exit criteria.
Modeled figures are projections from your inputs. Run a baseline and press Calibrate (Autopilot does it automatically) so service times and capacity come from measurement.
Scripts and CI
| Output | Use |
|---|---|
| k6 | One script with a scenario per tier; choose with -e TIER=…. Scale with -e LOAD_SCALE=…. Thresholds come from your gates. |
| JMeter .jmx | A thread group per channel, weighted mix, think time and assertions. Load per tier is passed as -J properties. |
| Locust | User classes per channel and a load shape for the main load tier. |
| Web Vitals | k6 browser script measuring LCP, CLS, FCP and TTFB during a protocol load test. |
| Kubernetes | k6 Operator TestRun for your largest tier, with parallelism from the generator sizing. |
| GitLab CI, GitHub Actions | Smoke and baseline on merge requests; Autopilot on schedule. |
| Gate config | Gates and transaction SLOs as JSON for other tools. |
Execute and runners
| Engine | Best for | Limits |
|---|---|---|
| Runner · native engine (default) | Every tier, open or closed model, recorded journeys, distributed runs. Nothing to install but Node 18+ | HTTP/1.1 and HTTPS only; up to MAX_VUS per runner |
| Runner · k6 (optional) | Teams that already standardise on k6, or need WebSocket, gRPC or HTTP/2 | Needs k6 on the runner host |
| This browser | Quick smoke checks | 50 users, 10 minutes; the target must allow CORS |
The native engine
The runner includes its own load generator, so k6, JMeter and Locust are optional. It provides:
- Executors: closed model (users with think time, ramping stages) and open model (ramping arrival rate with a pre-allocated pool of virtual users; iterations that cannot start are counted as dropped, as k6 does).
- Multi-core: one worker thread per CPU (set
WORKERS); each keeps its own keep-alive connection pool and per-second histograms, merged exactly. - HTTP behaviour: HTTP/1.1 and HTTPS with keep-alive, a cookie jar per virtual user, redirects (up to five), gzip, deflate and Brotli decoding, 30-second timeouts.
- Journeys and data: recorded steps with think times, values extracted from JSON responses, and a CSV of test accounts with one row per virtual user.
- Measurements: response time, status, errors by code, bytes received, and per-request DNS, connect, TLS, waiting and receiving time.
Use k6 instead when you need WebSocket, gRPC, HTTP/2 or browser-level tests.
Distributed load
List extra runners under More runners, one per line as URL token. With k6, each runner gets an execution segment of the same test; with the native engine, the load is divided evenly. Live metrics and final histograms merge exactly.
Pre-flight
Sends every request once, in order, with correlation, before any load. It catches wrong URLs, expired tokens and CORS problems in seconds. Start test runs it automatically the first time.
Safety
Every run needs the authorisation checkbox. Runs stop automatically when the error rate stays above your limit for 30 seconds.
Autopilot
One click runs: runner check, pre-flight, each selected tier in order (stopping on a Blocker failure), cool-downs, model calibration from the baseline, an optional breaking-point search (steps of ×1.5 up to a ceiling), comparison with the previous run of the same tier, the report, an optional AI narrative and a Slack or Teams webhook.
Headless in CI
Press Copy CI plan (JSON), commit it with the runner script, and run:
node headroom-runner.mjs autopilot perf/headroom-plan.json --out perf-results
| Exit code | Meaning |
|---|---|
0 | GO or CONDITIONAL GO |
1 | A Blocker gate failed (NO-GO) |
2 | Error (bad plan, engine missing) |
Outputs: summary.md, summary.json and one *.agg.json per tier. Drop the aggregates on Results for full dashboards and reports. The CLI judges p95, p99, error and throughput gates; Apdex and workload-achieved gates are judged when the aggregates are imported. Set WEBHOOK_URL to post the verdict.
Results and dashboards
| Import | Notes |
|---|---|
Headroom aggregate .agg.json | From runners and CI. Compact, exact percentiles, includes generator health. |
JMeter .jtl / CSV | CSV with a header row and an elapsed column. |
| k6 raw JSON | --out json=file.json; streamed, so large files work. |
| k6 summary | --summary-export; totals only, no time series. |
| Server metrics CSV | Timestamp first column, one numeric column per metric; attach to a run to correlate. |
The dashboard opens with What this run tells you: the verdict, the failed gates in words, delivered load, and the three next actions. Below are the gates, percentiles over time, throughput and errors, server metrics, distribution, response codes, transactions with response-time ranges, workload accuracy, findings and generator health. Adjust the analysis window per run, or reset it to steady state.
Findings
| Category | Detected automatically |
|---|---|
| System under test | Throughput limit, SLO breach point, error onset, latency growth with load, long tail, outliers, error concentration, server-metric correlation, drift over long runs |
| Test design | Planned load not reached, short steady window, too few samples, too many unique names, mix off plan, failure-dominated results |
| Load generator | CPU over 80%, memory over 90%, health not captured |
Compare and advisor
Compare sets a baseline run against a candidate and flags transactions whose p95 or errors worsen beyond the regression threshold. Advisor ranks changes from the model, gates, findings and comparisons, each with evidence, owner role, effort and expected result. Filter by owner, then copy as Jira CSV or a checklist.
Reports
Choose the primary run and the audience. Sections can also be picked one by one on Customize.
| Audience | Contents |
|---|---|
| Executive summary | Verdict with reason, confidence score, measured and modeled capacity, key findings, customer impact, decisions with owners, tier scorecard, next steps, optional AI narrative, action plan, sign-off |
| QE & engineering | Validity, configuration, workload accuracy, SLA goal vs actual, full statistics, response-time ranges, errors, timeline and scalability charts, findings, bottleneck and capacity analysis, generator health, results by tier, comparison, action plan, observations, risks, method, sign-off |
Export: Copy Markdown, Copy HTML, Download HTML and Print / PDF (the last two in the self-hosted copy).
Verdict rules
- NO-GO when any tested tier fails a Blocker gate.
- CONDITIONAL GO when a Major gate fails, a tier is untested, or a passing tier has low test confidence.
- GO when every planned tier is tested, passes and is trustworthy.
Ask AI (LiteLLM)
Answers come from your models through a LiteLLM proxy (OpenAI-compatible API). Choose Through Headroom Runner to keep the key on the runner (LITELLM_URL, LITELLM_KEY), or Direct with a virtual key stored only in your browser. Each question sends the project context: inputs, modeled tiers, the selected run, gates and recommendations. Preview context shows exactly what is sent. The model is instructed to label modeled, measured and demo figures and never to invent numbers.
Customize
Projects, industry templates, branding (product name, header line, band and accent colours), report layout, and JSON export and import of the whole configuration for sharing or source control. Imported runs, keys and tokens are never included in exports.
Runner reference
| Variable | Default | Purpose |
|---|---|---|
PORT, HOST | 7071, 127.0.0.1 | Listen address; 0.0.0.0 for remote agents behind TLS |
HEADROOM_TOKEN | random, printed | Required on every call |
ALLOW_ORIGIN | * | Lock to your Headroom URL |
MAX_VUS | 20000 | Native engine ceiling per runner (split across worker threads) |
WORKERS | CPU count (max 16) | Native engine worker threads |
K6_BIN | k6 | Path to k6, only if you use the k6 engine |
LITELLM_URL, LITELLM_KEY | — | AI relay |
WEBHOOK_URL | — | CLI Autopilot notification |
HTTP API
| Method | Path | Purpose |
|---|---|---|
| GET | /health | Version, engines, CPUs, memory, AI relay, active runs |
| POST | /preflight | Send each request once, with correlation |
| POST | /runs | Start a run (k6 script or Node plan; optional execution segment) |
| GET | /runs/:id/events | Server-sent events: per-second metric histograms, generator CPU and memory, logs, end |
| POST | /runs/:id/stop | Stop a run |
| GET | /runs/:id/agg | Compact aggregate (headroom-agg/1) |
| GET | /runs/:id/raw | Raw k6 output (k6 engine only) |
| POST | /ai | Relay to LiteLLM chat completions |
| POST | /notify | Post text to an https webhook |
Send the token in the x-headroom-token header, or as ?token= for event streams.
Method and definitions
| Measure | Definition |
|---|---|
| Percentiles | Log-bucket histograms with ±1% relative precision, merged across generators, over successful requests in the steady-state window |
| Error rate | Failed requests ÷ all requests in the window. A request fails on a network error, 4xx or 5xx, or a status different from the recorded one |
| Apdex | (satisfied + tolerating ÷ 2) ÷ all requests, with satisfied ≤ T and tolerating ≤ 4T; failures count as frustrated |
| Steady state | From one minute after users first reach 95% of peak to the last second at 95% of peak |
| Workload achieved | Measured throughput ÷ modeled throughput for the tier |
| Capacity within SLO | Highest user level where p95 and error rate stayed within target for three consecutive intervals |
| Test confidence | Starts at 100; loses 25 for load under 90% of plan, 20 for generator CPU over 80%, 15 for failure-dominated or summary-only results, 10 each for a short window, small samples or a reduced environment, and 5 when generator health is not captured |
Troubleshooting
| Symptom | Fix |
|---|---|
| “Could not reach …” | Use the self-hosted copy (the claude.ai preview blocks network calls); check the runner is running and ALLOW_ORIGIN matches your page. |
| Token rejected | Copy the token printed in the runner's console, or set HEADROOM_TOKEN. |
| Browser engine: every request failed | The target does not allow CORS. Use a runner. |
| Planned load not reached or dropped iterations | Check generator CPU, raise MAX_VUS or add runners, and look for failing steps that end iterations early. |
| Pre-flight fails after recording | Fill test credentials on Record, or a correlated value lives outside JSON; edit the k6 script. |
| AI: proxy answered 401 or 404 | Check the virtual key and that the model name exists in the proxy (Test connection lists them). |
Security and data
- The app is static; projects, runs and settings stay in your browser's local storage.
- Runners require a token, can be locked to one origin, and bind to localhost by default.
- The LiteLLM key can stay on the runner; a direct key is stored only in your browser and is never exported.
- Recordings drop cookies and never keep passwords. HAR files contain tokens; delete them after import.
Known limits
- Protocol tests exclude browser rendering and device time; use the Web Vitals script or a device farm for those.
- Correlation covers JSON response values only.
- The native engine speaks HTTP/1.1 and HTTPS; use the optional k6 engine for WebSocket, gRPC and HTTP/2.
- Node 18 or later is the only prerequisite for runners; the
node:20-alpinecontainer image works as is. - One runner executes one run at a time; add runners for parallel load.
- Browser storage belongs to one browser; export the configuration to share it.
Test inputs
Every list here is editable: channels, transactions, load tiers and profiles, architecture components and quality gates. The planning agent recalculates as you type.
Agent readout
ModeledProject
Channels
Share splits the load. Network ms is the per-request round trip the channel adds (Wi-Fi ≈ 30, 4G ≈ 120, 3G ≈ 560). CDN % is served at the edge and never reaches origin.
Transactions
Weight sets the mix inside a channel. Critical transactions get their own gates; leave p95 SLO blank to use the global target. Cost scales server time relative to an average request.
Load tiers & profiles
Add as many tiers as you need. Concurrent users runs a closed model with think time; requests/s runs an open, arrival-rate model. Profile is a list of “duration %” steps, for example 5m 10, 5m 25, 30m 100, 3m 0.
Architecture components
Each component autoscales between min and max at the target utilisation. Visits per request is net of caching (1.5 queries × 30% cache miss = 0.45). For a pool, capacity is connections per instance of the first service.
Service levels
Quality gates
Gates decide pass or fail for measured runs and become k6 thresholds and CI gates. A failed Blocker fails the run; a failed Major makes it conditional.
Load generation
Workload & capacity model
Little's Law sizes traffic for each tier; a queueing model of every component (with autoscaling) projects latency and finds the first bottleneck. Calibrate it from a measured baseline on the Advisor tab.
Modeled p95 response vs concurrent users
Component utilisation by tier
Over 70% is a risk; 100% or more means that component saturates and requests queue or fail. Instances are what autoscaling would need.
Workload, generators and test data
Test execution plan
Scripts & CI
Generated from your channels, transactions, tiers and gates. Tiers using requests/s run as open-model arrival-rate tests so a slow system can't quietly reduce the load.
Results
Import raw test output and server metrics. Files are streamed and analysed in this browser; nothing is uploaded.
Load test results
Headroom aggregate .agg.json (from the runner or CI Autopilot) · JMeter .jtl/CSV · k6 raw JSON · k6 summary. Several files at once are fine.
Server metrics
CSV with a timestamp first column (epoch s/ms or ISO) and one numeric column per metric, e.g. time,app_cpu_pct,db_cpu_pct,heap_mb,db_conns. Export from Prometheus, Datadog, CloudWatch or Dynatrace.
Runs in this project
Dashboard
Release comparison
Compare a candidate run with a baseline. Any transaction whose p95 or error rate worsens beyond the regression threshold is flagged.
Recommendations
The advisor reads the model, every imported run, gate results, server metrics and your test design, then ranks the changes that most improve results at each tier.
Performance test report
Choose the audience and sections on the Customize tab. Copy as Markdown for Confluence, SharePoint or a ticket, or as HTML.
Readiness checklist
Report details
Observations & defects
Logged here, they appear in the report with severity, status and owner.
Record a user journey
Capture a real session as a HAR file and Headroom turns it into a runnable test: requests grouped into steps, your think times kept, dynamic tokens correlated, credentials parameterised.
Drop a HAR recording
Cookies are dropped (the engines keep their own cookie jar), Authorization headers become a variable, and passwords are never stored.
How to record
- Web: Chrome DevTools → Network → tick “Preserve log” → walk the journey with realistic pauses → right-click → “Save all as HAR with content”.
- Mobile app: route the device through Charles, Proxyman or Fiddler with HTTPS decryption on, run the journey, export the session as HAR.
- API: export a HAR from Postman, Insomnia or your API gateway logs.
- Use a test account. HAR files contain tokens; delete them after import.
Execute
Run tests from Headroom through a runner agent (its built-in native engine, or k6 if you prefer) on your machine or a load-generator host, or a small smoke test straight from this browser. Live metrics stream in; results import automatically and are judged against your gates.
Autopilot
One click: pre-flight → tiers in order with gates → calibrate → breaking point → compare → report → notify1 · Engine
Not connected.
2 · What to run
3 · Pre-flight check
Set up a runner
- Install Node 18 or later, and k6 for large and open-model tiers.
- Save the runner script (button above) as
headroom-runner.mjson your machine or a load-generator VM. - Start it:
HEADROOM_TOKEN=choose-a-secret ALLOW_ORIGIN=https://your-headroom-url node headroom-runner.mjs. AddLITELLM_URLandLITELLM_KEYto use it as the AI relay too. - Enter its URL and token here and press Connect. For remote agents set
HOST=0.0.0.0and put it behind TLS.
The browser engine needs the target to allow cross-origin requests. The claude.ai preview of this page blocks all network calls, so execution and AI work in a self-hosted copy.
Ask Headroom AI
Plain-language answers about your plan, model, runs and recommendations, from your own models through a LiteLLM proxy. Every question carries the project context; answers say what is modeled, measured or demo, and what is missing.
Customize
Projects, industry templates, branding, report layout and configuration sharing. Settings are kept in this browser; export the configuration to share it with your team or keep it in source control.
Projects
Branding
Report layout
Share configuration
The full project as JSON: inputs, gates, branding, report settings and observations. Imported runs are not included.