Skip to main content
Every prescale run and prescale investigate saves a versioned JSON file to .prescale/runs/<id>.json. The prescale run --json flag emits the same shape to stdout, so the file you get on disk and the JSON you pipe to another tool are always identical. Use prescale schema to print the full machine-readable JSON Schema at any time.

Top-level fields

The root object has the following properties. Fields marked required must be present on every result; the remaining fields are conditionally present based on which command was run and which options were used.
integer
required
Always 1. Additive fields may appear in future releases without bumping this version, so your consumer should ignore unknown properties.
string
required
"run" for a standard prescale run, or "audit" for a prescale audit result.
string
required
The filename stem of the saved result (e.g. 20260628T173648Z). IDs sort chronologically so ls .prescale/runs/ gives you results in time order.
string
required
The version of prescale that produced this result (e.g. "1.1.2").
string
required
UTC ISO-8601 timestamp, e.g. "2026-06-28T17:36:48Z".
string | null
A human-readable warning emitted during the run (e.g. robots.txt signal, rate-cap hit), or null if everything was clean.
object
required
Describes what was load-tested.
object
required
The exact configuration used for this run. See config fields below.
object
required
The top-level capacity verdict. See verdict fields below.
Stage[]
required
Per-level load metrics. See stages below.
object
Git context captured at run time. Present only when the run was executed inside a git repository.
string | null
Present with investigation: plain text for a coding agent (Claude Code, Cursor) with where it broke, at how many users, the diagnosis, the evidence and the fixes. Built from the result itself, with no model; never includes response bodies, secrets or credentials from the URL.
object
Root-cause diagnosis. Present only when prescale investigate ran. See investigation fields below.
object
Launch-scenario framing. Present only when --profile was used.

config fields

The config object records every tunable that governed the run. You can reproduce a run exactly by replaying these values as CLI flags.
string
required
HTTP method used (e.g. "GET").
integer
required
Peak virtual users the ramp targeted.
number
required
Seconds held at each load level.
number
required
p95 latency threshold in seconds. A stage where p95 exceeds this is considered failed.
number
required
Error-rate threshold (0–1). A stage where the error rate exceeds this is considered failed.
number | null
required
Aggregate requests-per-second ceiling, or null if no cap was applied.
boolean
Whether the warmup phase ran before measurement began.
integer
Number of full ramps pooled to tighten the confidence band.
number
Simulated pause (seconds) each virtual user waited between requests.
boolean
true when the run tested a local build that PreScale started with --app (replica mode). Absent otherwise. The command itself is never recorded.
integer | null
The --fail-under gate value, or null if no gate was set.
string | null
The --profile scenario name, or null if no profile was used.

verdict fields

The verdict object is the single most important part of the result — it summarises what PreScale found.
integer
required
The highest concurrent-user level at which the app stayed within both the latency wall and error threshold. This is the headline capacity number.
integer
required
The highest user level actually tested during the ramp.
integer | null
required
The user level where failure first appeared, or null if the app survived all tested levels.
"errors" | "latency" | null
required
Whether the first failure was triggered by the error-rate threshold ("errors") or the latency wall ("latency"), or null if there was no failure.
string | null
required
The route path that degraded first, or null if all routes degraded together or there was no failure.
string | null
required
A short plain-English description of the likely failure cause, or null if no failure was observed.
boolean
required
true if throughput plateaued while virtual users kept rising — a sign the server hit a concurrency ceiling.
integer | null
required
The user level where saturation was first detected, or null if saturation was not observed.
number
required
The highest requests-per-second observed across all stages.
boolean
required
true if the failure onset is close to max_tested, meaning the true ceiling may be higher than tested. Re-run with a larger -u value to be sure.
object
Statistical confidence band around the survives_users estimate.

stages

The stages array contains one object per tested load level, in ascending order of virtual users.
integer
required
Number of concurrent virtual users held at this stage.
number
required
Aggregate requests per second observed during this stage.
integer
required
Median (p50) response latency in milliseconds across all routes.
integer
required
95th-percentile response latency in milliseconds across all routes.
integer
required
99th-percentile response latency in milliseconds across all routes.
number
required
Fraction of requests that returned an error (0–1) at this stage.
integer
required
Absolute error count at this stage.
integer
required
Total request count at this stage.
integer
Number of latency samples recorded (may differ from total when sampling is applied at very high RPS).
object
required
A map of route path → per-route stats. Each value has the same shape: total, errors, error_rate, rps, p50_ms, p95_ms, p99_ms.

investigation fields

The investigation object is added to the result when you run prescale investigate. It contains the root-cause diagnosis for the culprit route.
string
The route path that was diagnosed (matches verdict.culprit_route).
string
Machine-readable bottleneck classification (e.g. "connection_pool", "concurrency_ceiling"). See Bottleneck Types for the full list.
"high" | "medium" | "low"
How confident the classifier is in its diagnosis. "high" means the signal was unambiguous; "low" means you should re-run with --repeat 3 for more data.
string
Plain-English one-sentence diagnosis.
string[]
The specific signals that led to this classification — baseline vs loaded latency, static-route probe outcome, error kinds, server header, etc.
string[]
Ordered list of concrete fix recommendations, enriched with hints based on detected stack (e.g. gunicorn, nginx, pgbouncer).
string | null
Journey runs only: the journey whose step broke first.
object | null
Journey runs only: the step that broke first, as index (1-based), name and route.
object | null
Journey runs only: set when the journeys ramped together starved the culprit journey. Same shape as combined.interference.
object
Key-value map of detected infrastructure signals — typically server (e.g. "gunicorn/21.2.0") and cdn (e.g. "Cloudflare"). Empty if nothing was detected.

Example

A minimal result for a successful run against a local app:

Run prescale schema to print the full JSON Schema in your terminal — useful for validating results programmatically or generating TypeScript types. Add .prescale/ to your .gitignore to keep run artifacts out of source control (except any baseline files you deliberately commit for CI comparison).