Step-by-step launch prep
1
Start your staging server
Point PreScale at a staging or preview environment that mirrors production as closely as possible — same runtime, same database tier, same environment variables. The closer the staging environment is to production, the more actionable the results will be.For a VPS or Kubernetes setup, deploy a recent build to a staging namespace or instance first. On a platform, check its rules before load-testing a preview: Vercel, Netlify and Cloudflare only allow it by arrangement (host rules). Without that, test your app’s own production build with replica mode:
prescale investigate http://localhost:3000 --app "npm run build && npm start".2
Run the load test
Use
investigate to get the full picture in one shot — it finds what breaks, at what load, and why:investigate runs the traffic ramp and then probes the culprit route to classify the bottleneck and prescribe a fix. If you only want the capacity number without the diagnosis, use run instead — but for launch prep, investigate gives you everything you need to act.3
Read the verdict
PreScale prints a structured result showing what happened at each load level and where things broke. The key fields to read:
survives_users— the estimated number of concurrent users your app handles before errors or latency crosses the threshold.- Confidence band (
survives_low–survives_high) — the range the real break point is likely to fall in. See Interpreting the confidence band below. stablevs uncertain — whether the result is statistically solid or the band is wide enough that you should run with--repeat 3to tighten it.onset_reason— what tripped first: error rate, latency wall, or both.culprit_route— the specific route that broke first, if PreScale could isolate it.
4
Fix the bottleneck
investigate classifies the bottleneck and tells you how to fix it in plain English. Common classes include connection pool exhaustion, a slow upstream, an unhandled error path under load, or a worker queue filling up.See the Bottleneck Types reference for what each bottleneck class means, what evidence PreScale uses to identify it, and the recommended remediation steps for each.After making changes, re-run prescale investigate to confirm the fix moved the number in the right direction.5
Frame against your launch scenario
Abstract user counts are hard to act on. Use The output translates your capacity number into a concrete verdict:See the Profile examples table below for all available profiles and their peak concurrency numbers.
--profile to frame the result as a go/no-go verdict for your specific launch type:6
Run a final audit
Once you are happy with the load capacity, run a static HTTP hygiene check. These checks catch issues that are invisible under normal traffic but hurt perceived performance and cost at scale — uncompressed assets that bloat response sizes, missing cache headers that re-fetch static files on every request, or a missing CDN that routes all traffic through your origin.
audit is load-free — it checks compression, static-asset caching, CDN presence, HTTP version, and cookie hygiene in seconds:Interpreting the confidence band
PreScale is honest about uncertainty. Every result includes a confidence band — a range of users that brackets the true break point:-
survives ~90 (75–110)means PreScale is confident your app holds up through roughly 90 users, with the real break point likely somewhere in the 75–110 range. -
The Traffic line under the verdict says what that means in load, e.g.
≈ 590 req/s, roughly 5,900 real visitors. Virtual users send requests back to back while real visitors pause between clicks, so compare your expected launch traffic with this number, not with the user count. -
A narrow band (e.g.
85–95) means the result is stable and repeatable — you can act on it confidently. -
A wide band (e.g.
50–150) means the test saw variable results across load levels. Run with--repeat 3to pool multiple ramp-ups and tighten the band:
stable flag in the JSON output tells you programmatically whether the band is tight enough to trust. If stable is false, treat the result as directional rather than definitive and run again with --repeat.
Profile examples
Useprescale profiles to list all available scenarios. The table below shows each profile, its description, and the peak concurrent users it targets — the number your app must survive to get a ✅ verdict:
Each profile sets a realistic
think-time (pause between requests per virtual user) that reflects how real humans browse during that event. This makes the simulated load pattern more accurate than a pure concurrent-connection ramp.
Testing multiple routes
If your app has routes with different performance characteristics — a checkout API, a search endpoint, a heavy dashboard query — test them explicitly with--path:
--from-sitemap to auto-discover GET routes from your site’s sitemap.xml: