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.
The one idea you need: a virtual user
Section titled “The one idea you need: a virtual user”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.
How many requests will it send?
Section titled “How many requests will it send?”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 timeWith 100 VUs for 30 seconds:
| If the endpoint replies in… | Each VU manages | Total requests |
|---|---|---|
| 50 ms | 600 | ~60,000 |
| 200 ms | 150 | ~15,000 |
| 1 s | 30 | ~3,000 |
| 5 s | 6 | ~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.
The three stop modes
Section titled “The three stop modes”| Mode | Total requests | Use it for |
|---|---|---|
| Run for a duration | an outcome (see above), up to 600 s | sustained load and capacity |
| Run a fixed number of requests | exactly N, shared across all VUs (the fastest VUs take more than their share) | bounding the total |
| Each user fires a fixed number of times | always VUs × N, evenly divided | bursts: 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.
Set up a run
Section titled “Set up a run”| Field | What it does |
|---|---|
| Collection / Request | The saved request every VU fires. Save it and send it successfully once first. |
| Environment | Which environment’s variables to use. Active environment follows the title bar selection. |
| Virtual users | How many simulated clients run at once (up to 500). |
| Ramp-up, seconds | Start 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 mode | Duration, 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.
Run it
Section titled “Run it”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 tile | Meaning |
|---|---|
| Virtual users | Active / 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 latency | 95% of replies so far were faster than this. |
| Error rate | The share of requests that got no reply at all (timeout, refused, dropped). |
| Requests | Completed / 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.
Read the report
Section titled “Read the report”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
500still shows0.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).
After a run
Section titled “After a run”| Button | Does |
|---|---|
| Edit run | Reopens the setup form with this run’s settings, so you can change one number and go again. |
| Export report | Saves the report as HTML, JSON or .otc (see below). |
| New run | Back to the setup form as it currently stands. |
| History | Every completed run, newest first (the last 200). Open one to see its full report, or edit or export it from there. |
Share a report
Section titled “Share a report”| Format | For | What you get |
|---|---|---|
| HTML | Someone without OrbitTest | One 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. |
| JSON | A script, dashboard or CI gate | Flat, 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. |
.otc | A colleague with OrbitTest | Re-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.
What Surge does with your request
Section titled “What Surge does with your request”- 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.
Limits
Section titled “Limits”| Virtual users | Duration |
|---|---|
| up to 500 | up 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 —” reason | Meaning |
|---|---|
| duration | The time you set elapsed. |
| count | The requested number of requests was sent. |
| manual | You pressed Stop. |
| ceiling | A 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. |
Choosing numbers: a recipe
Section titled “Choosing numbers: a recipe”- 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. - 10 VUs, 30 seconds, 5 s ramp. This is your baseline. Note the p95 and RPS.
- 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.
- Keep the winning settings and re-run them after every server change. The vs-last-run comparison then spots regressions for you.
Troubleshooting
Section titled “Troubleshooting”| Symptom | What it usually means |
|---|---|
| Error rate is 0% but nothing worked | Only no-reply failures count there. Check the 4xx / 5xx chips and the “About that error rate” line. |
| Lots of 4xx at high VU counts | Often rate limiting (429) or expiring auth, not a capacity problem. Send the request once by hand. |
RPS far below VUs ÷ p95 | Time 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 err | Nothing 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