Distributed k6 Load Testing & Real-Time Telemetry

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.

Test Runner Interface
Sign in to unlock live execution
GET
https://api.example.com/v1/healthcheck

Ready to execute high-throughput load tests?

Sign in with your Workflow or Benchley account to configure custom headers, stage profiles, and stream telemetry.

Performance Testing Reference

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?

Right answer, one at a time

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.

Quality under pressure

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.

Load, latency, limits

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

Ramp up
Hold at avg load
Ramp down
100%
of avg production traffic
p95 < 500ms
typical latency SLO
< 1%
error rate target

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)
k6 stage definition
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

load-test.js
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_durationLatency

Read p95/p99 — averages hide exactly the users having a bad time.

http_req_failedError rate

Sharpest single signal that the system is past its limit.

http_reqsThroughput

Compare achieved vs target — the gap tells you where the time went.

checksCheck rate

Functional pass rate under load — behaviour that only degrades at concurrency.

dropped_iterationsDropped

k6 could not start iterations on time — the generator, not your app, is the bottleneck.

CPU / memorySystem

Flat 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