Skip to content

Surge Load & Stress Testing

Surge (the lightning-bolt icon) takes one saved request and fires it at your target over and over, from many simulated clients at once, then explains in plain English how the target held up. It’s the local, no-account equivalent of k6, JMeter or a cloud performance run. Everything happens on your machine, against a target you choose. Nothing is uploaded. New in v1.3.0.

A virtual user (VU) is a simulated client running one simple loop:

send the request → wait for the complete reply → send it again immediately → repeat

Virtual users: 100 starts 100 of those loops side by side. Two things follow:

  • A VU never has two requests in flight. Your VU count is the concurrency: 100 VUs means at most 100 requests are being processed at any instant.
  • VUs never pause. A real person reads the screen for a few seconds between clicks. A VU fires again the millisecond the reply lands.

So 100 VUs is not “100 users”. It’s much heavier. To convert real users into VUs:

VUs ≈ real users × response time ÷ (response time + think time)

1,000 people clicking every 5 seconds against a 200 ms endpoint is about 38 VUs. Running that test with 500 VUs simulates something closer to 13,000 people.

In duration mode you don’t choose the number. It’s an outcome:

total requests ≈ virtual users × (duration ÷ response time)
requests per second ≈ virtual users ÷ response time

With 100 VUs for 30 seconds:

If the endpoint replies in…Each VU managesTotal requests
50 ms600~60,000
200 ms150~15,000
1 s30~3,000
5 s6~600

A slower target produces fewer requests, not more. The same settings can send 138 requests to one API and 16,000 to another, and that difference is the measurement.

ModeTotal requestsUse it for
Run for a durationan outcome (see above), up to 600 ssustained load and capacity
Run a fixed number of requestsexactly N, shared across all VUs (the fastest VUs take more than their share)bounding the total
Each user fires a fixed number of timesalways VUs × N, evenly dividedbursts: set N = 1 and ramp-up 0 for a single simultaneous wave

That last mode answers “what happens if 50 people click at once?”: 50 VUs, one iteration each, with all requests leaving at the same moment. The run ends when the last response lands, and the report describes it as a burst rather than sustained load.

FieldWhat it does
Collection / RequestThe saved request every VU fires. Save it and send it successfully once first.
EnvironmentWhich environment’s variables to use. Active environment follows the title bar selection.
Virtual usersHow many simulated clients run at once (up to 500).
Ramp-up, secondsStart VUs gradually. VU n waits (n ÷ total VUs) × ramp before its first request: with 100 VUs and a 10 s ramp, the first starts immediately and the last at about 9.9 s.
Stop modeDuration, fixed number of requests, or fixed iterations per user (see above).

Use a ramp-up for sustained-load runs. With a ramp of 0, every connection opens in the same millisecond, which tests your target’s cold-start and connection-accept path more than its steady-state capacity. A ramp also makes breaking-point detection meaningful, because load climbs gradually. Burst runs are the exception: there, the simultaneous arrival is exactly what you’re measuring.

Target preview. The right-hand panel shows the exact request Surge is about to fire (final URL, headers and body, with secrets masked) plus warnings such as unresolved {{variables}} or missing auth. It’s the same pre-flight check the Send button uses, so you can catch a broken request before sending ten thousand copies of it. Edit request opens it in the normal editor.

Click Start Surge. For large runs (over 50 VUs) or non-local targets, an in-page confirmation names the URL and the VU count before anything is sent.

Only one Surge run happens at a time across the app. It runs in the background, so you can work elsewhere while the lightning-bolt icon shows its running indicator.

Live tileMeaning
Virtual usersActive / target. It climbs during ramp-up and drops to 0 as the run winds down.
RPS (live)Requests per second right now, measured over the last 300 ms.
p95 latency95% of replies so far were faster than this.
Error rateThe share of requests that got no reply at all (timeout, refused, dropped).
RequestsCompleted / sent. The gap is what’s in flight.

Stop ends the run immediately. Requests cut off by Stop are not counted as errors, so stopping never fabricates an error spike.

A What this means panel gives a one-line verdict, then explains the run:

  • Speed: the typical and slowest-5% response times, and whether that feels instant, acceptable, or past the point where people give up.
  • Reliability: how many replies succeeded, and why the rest didn’t. 5xx means the server broke while handling the request. 4xx means the server refused it, usually a problem with the request rather than the load. No reply (timeout, refused, dropped) is the classic sign of a target at its limit.
  • Throughput: requests per second and per minute.
  • About that error rate: shown when it matters, because the Error rate tile counts only requests that got no reply. A run where every response is a 500 still shows 0.0% there.
  • What to try next: concrete steps for this result, such as sending the request once by hand when 4xx dominates, halving the VUs when the target ran out of capacity, or raising them when nothing broke.

Two automatic findings follow:

  • Breaking point: the moment latency rose sharply above the run’s own healthy baseline, or errors became sustained rather than a blip. It’s reported as “around N req/s, ~Xs in”, which is your target’s practical ceiling for this test.
  • vs your last run: the same request’s previous run is found automatically and compared on p95, error rate and throughput, with a better / worse / similar verdict. Thresholds are deliberately conservative (±15% on latency, 2 points of error rate) so normal noise doesn’t cry wolf.

Then the charts: throughput and p95 latency over time, a latency distribution histogram (a two-humped spread usually means a cold connection pool or a cache that only sometimes hits), and status chips for 2xx, 3xx, 4xx, 5xx and err (no reply).

ButtonDoes
Edit runReopens the setup form with this run’s settings, so you can change one number and go again.
Export reportSaves the report as HTML, JSON or .otc (see below).
New runBack to the setup form as it currently stands.
HistoryEvery completed run, newest first (the last 200). Open one to see its full report, or edit or export it from there.
FormatForWhat you get
HTMLSomeone without OrbitTestOne self-contained file that opens in any browser, offline. It’s written for a reader who wasn’t there: verdict first, every number explained, and a glossary. Charts are inline SVG.
JSONA script, dashboard or CI gateFlat, labelled data with ISO timestamps, pre-derived totals (including the 4xx/5xx vs no-reply split), unused stop modes as null, and the same verdict, breaking point and next steps the app shows.
.otcA colleague with OrbitTestRe-opens in the full interactive report via Import report in History, with identical charts and analysis and nothing recomputed.

What’s in an export: results only, plus the request’s name, method and URL. Request bodies, headers and auth are never recorded. Because a run stores its resolved URL, query-string values are masked in every export (/orders?api_key=***). Your local history keeps the real URL. The hostname and path are not masked, so treat a report naming an internal host the way you’d treat that hostname anywhere else.

Imported runs carry an Imported badge and are excluded from vs-last-run comparison in both directions, because a colleague’s machine, network and target aren’t a valid baseline for yours. The .otc format is plain JSON behind an identifying header, so it can be diffed in Git. Re-importing the same file adds nothing.

  • Dynamic variables re-roll on every request, so you’re not hammering one cached row. In multipart bodies, the whole body (files and text fields) is built once for the run.
  • OAuth 2.0 is resolved once before the run and flattened into a plain header, so 500 VUs can’t cause a token-refresh storm. Surge warns you if the token will expire mid-run, because it won’t refresh it.
  • Per-request timeout is the request’s own setting, or 30 seconds. A timed-out request lands in err.
  • Proxy, client certificates (mTLS), TLS skipping and redirects use the same settings as the Send button.
  • Connections come from a keep-alive pool sized to your VU count (4 to 512).
  • Surge tests one request. For multi-step flows, use the collection Runner or Pulsar.
Virtual usersDuration
up to 500up to 600 s (10 min)

These are safety limits, not a paywall. They stop a typo (50,000 VUs) from turning a local test into an accidental flood, and the app’s core enforces them, not just the form.

”Finished —” reasonMeaning
durationThe time you set elapsed.
countThe requested number of requests was sent.
manualYou pressed Stop.
ceilingA safety backstop fired at 600 s + 5 s. This also applies to fixed-count runs: a slow target can hit the ceiling before your count is reached.
  1. 1 VU, 10 seconds. Does it even work? Every reply should be 2xx. If not, fix the request first. Load testing a broken request only measures how fast it can fail.
  2. 10 VUs, 30 seconds, 5 s ramp. This is your baseline. Note the p95 and RPS.
  3. Double the VUs and compare with the automatic vs-last-run line:
    • RPS doubled and p95 stayed flat: the target has headroom, so double again.
    • RPS stayed flat and p95 doubled: saturation. Requests are queuing, and the RPS just before this point is your real capacity.
    • RPS stayed flat and errors appeared: you’re past the limit. The target is dropping work rather than queuing it.
  4. Keep the winning settings and re-run them after every server change. The vs-last-run comparison then spots regressions for you.
SymptomWhat it usually means
Error rate is 0% but nothing workedOnly no-reply failures count there. Check the 4xx / 5xx chips and the “About that error rate” line.
Lots of 4xx at high VU countsOften rate limiting (429) or expiring auth, not a capacity problem. Send the request once by hand.
RPS far below VUs ÷ p95Time is going somewhere latency doesn’t measure: connection or TLS setup, DNS, rate-limit backoff, or your own machine’s limits. At very high VU counts you can end up measuring your client, not the server.
”A Surge run is already active”Only one run at a time. Stop the current one first.
”Request not found”The request must be saved in a collection. An unsaved tab can’t be load tested.
Everything is errNothing is answering: a wrong URL or port, a server that’s down, or a proxy or TLS setting blocking every connection.

Run history lives in the app’s data folder (surge/runs.ndjson), outside your workspace, so load tests never bloat or dirty the file you sync to Git.

Related: Pulsar monitoring · What’s new in 1.3.0 · User Guide