Backstop
Reference

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)

MetricDirectBackstopOverhead
p50 latency0.12 ms0.19 ms0.07 ms
p95 latency0.22 ms0.30 ms0.07 ms
p99 latency0.30 ms0.38 ms0.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 recordsthe snapshot does not record
date 2026-07-20host CPU
seed 0x00C0FFEEoperating system
local httpx.MockTransport, no networkPython version
1,000 requestsprovider 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 1000

Latency is measured separately from provider latency. See the benchmarks guide for methodology.

The scenario table below is not equally reproducible: burst and steady-state reproduce exactly, because they do not turn on a wall-clock timer. error-storm and budget-hit turn 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)

ScenarioRequestsProvider CallsSuccessesProvider ErrorsBudget-BlockedCircuit-Blocked
burst505050000
steady-state303030000
error-storm5015110039
budget-hit8016160640

How to reproduce

backstop benchmark --publish

See the benchmarks explanation for the full methodology and rules.


— Edit this page on GitHub

On this page