Benchmark Results (2026-07-20)
Latest committed benchmark snapshot for Backstop local overhead and scenario results.
- Date: 2026-07-20
- Seed:
0x00C0FFEE(deterministic) - Method: local
httpx.MockTransport; no network; counts are exact and reproducible.
Overhead (local mock transport, 1,000 requests)
| Metric | Direct | Backstop | Overhead |
|---|---|---|---|
| p50 latency | 0.12 ms | 0.19 ms | 0.07 ms |
| p95 latency | 0.22 ms | 0.30 ms | 0.07 ms |
| p99 latency | 0.30 ms | 0.38 ms | 0.07 ms |
These are the only overhead numbers the upstream repository commits. Read 0.07 ms as one recorded run, not a guarantee, because of exactly what the snapshot does and does not record:
| the snapshot records | the snapshot does not record |
|---|---|
date 2026-07-20 | host CPU |
seed 0x00C0FFEE | operating system |
local httpx.MockTransport, no network | Python version |
| 1,000 requests | provider SDK version |
Because latency is a wall-clock measurement, it will never match a snapshot exactly on another host. Re-measure yours:
backstop benchmark
# or, with no CLI at all:
PYTHONPATH=src python3 benchmarks/local_overhead.py --requests 1000Latency is measured separately from provider latency. See the benchmarks guide for methodology.
The scenario table below is not equally reproducible:
burstandsteady-statereproduce exactly, because they do not turn on a wall-clock timer.error-stormandbudget-hitturn on retry backoff and circuit cooldown, so treat those two rows as indicative and never diff them against a snapshot. And this overhead figure is the enforcement path with the ledger off, which is the default — the opt-in spend ledger costs roughly +130 to +147 µs p50 on top, and is published separately.
Scenario results (deterministic, seeded)
| Scenario | Requests | Provider Calls | Successes | Provider Errors | Budget-Blocked | Circuit-Blocked |
|---|---|---|---|---|---|---|
| burst | 50 | 50 | 50 | 0 | 0 | 0 |
| steady-state | 30 | 30 | 30 | 0 | 0 | 0 |
| error-storm | 50 | 15 | 11 | 0 | 0 | 39 |
| budget-hit | 80 | 16 | 16 | 0 | 64 | 0 |
How to reproduce
backstop benchmark --publishSee the benchmarks explanation for the full methodology and rules.
— Edit this page on GitHub