Stress-Test APIs with Surgical Precision.
High-throughput HTTP load tests with real-time telemetry, SLO gates, and run comparison — powered by k6.
k6 Sub-Millisecond Engine
Go-powered k6 engine. Microsecond timing, minimal CPU overhead.
Real-Time SSE Telemetry
Second-by-second RPS, p50/p95/p99 latency, and VU tracking — live.
Side-by-Side Run Diffing
Compare baseline vs candidate with delta pills. Catch regressions before merging.
Ready to execute high-throughput load tests?
Sign in with your Workflow or Benchley account to configure custom headers, stage profiles, and stream telemetry.
Four ways to stress-test your API on purpose
Load, stress, spike, and soak testing each answer a different question. Here's what each one does, how to shape the traffic, and what numbers to watch.
Why performance testing?
Functional
Unit & integration tests verify correctness. They're deterministic and run against a handful of calls — they tell you the endpoint is correct, not how it behaves at 5,000 req/s.
Non-functional
Security, reliability, scalability, performance. These can't be asserted with pass/fail unit tests — they need a system under realistic pressure to become measurable.
Performance
Latency at your target load, sustainable throughput, error rate under stress, and the exact point where the system gives way.
The gap that matters — Unit suites stay green while a service falls over at 200 req/s. Functional correctness tells you the answer is right; performance testing tells you whether you can keep answering at the rate real users ask.
The four test types
Load Test
Does it keep its promises on an ordinary day?
Reproduce expected production load, prove your SLOs hold, and create a baseline every future run compares against.
Traffic shape over time
How to run it
- Derive target from real traffic analytics — not guesswork.
- Hold long enough to surface GC pressure and cache churn.
- Vary request data to defeat caches and memoisation.
What to watch
- p95/p99 latency drift during the plateau
- CPU and memory staying flat (creeping = leak)
- Latency bump at ramp start (cold connection pools)
stages: [
{ duration: '2m', target: 200 }, // ramp to normal load
{ duration: '15m', target: 200 }, // hold — baseline window
{ duration: '2m', target: 0 }, // ramp down
],
thresholds: {
http_req_failed: ['rate<0.01'],
http_req_duration: ['p(99)<100'],
}Observed in practice
A .NET API on a Raspberry Pi 2 (900 MHz, 1 GB) held 200 req/s at under 20% CPU and passed a 100 ms p99 threshold.
Anatomy of a k6 test
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '30s', target: 200 }, // ramp up
{ duration: '5m', target: 200 }, // hold
{ duration: '30s', target: 0 }, // ramp down
],
thresholds: {
http_req_failed: ['rate<0.01'], // < 1% errors
http_req_duration: ['p(99)<100'], // p99 under 100 ms
},
};
export default function () {
const res = http.get('https://api.example.com/');
check(res, { 'status 200': (r) => r.status === 200 });
sleep(1);
}Virtual Users (VUs)
Parallel workers that each loop through your default function — one request at a time. 100 VUs ≈ 100 concurrent users.
sleep(1)
Without sleep, VUs generate maximum possible load. sleep(1) gives ≈ 1 req/s per VU — the honest way to simulate N concurrent users.
Stages
The traffic shape over time. Same script, different stages = load test, stress test, spike test, or soak test.
Varied test data
Put payloads in an array and pick randomly per iteration. Identical requests let caches flatter your numbers.
Checks
Assert correctness during the run. A fast 500 still counts as a failure — latency alone would call it a pass.
Thresholds
Encode pass/fail SLOs into the test. k6 exits non-zero so CI/CD blocks a regression before it ships.
The numbers that matter
http_req_durationLatencyRead p95/p99 — averages hide exactly the users having a bad time.
http_req_failedError rateSharpest single signal that the system is past its limit.
http_reqsThroughputCompare achieved vs target — the gap tells you where the time went.
checksCheck rateFunctional pass rate under load — behaviour that only degrades at concurrency.
dropped_iterationsDroppedk6 could not start iterations on time — the generator, not your app, is the bottleneck.
CPU / memorySystemFlat under steady load is healthy. Creeping is a leak in waiting.
Start from the terminal
k6 is a free, scriptable load generator written in JavaScript — a handful of lines gets you a running test, and no code changes are needed to move between test types. Benchley wraps the same engine with live telemetry, SLO gates, and run comparison.
brew install k6 # macOS
choco install k6 # Windows (Chocolatey)
docker run --rm -i grafana/k6:latest # Docker — no install needed
k6 run test.js # run a script
k6 run --out json=result.json test.js # save raw metrics