Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 2.13 KB

load-benchmark-latest.md

File metadata and controls

43 lines (34 loc) · 2.13 KB

Full-load benchmark artifact lifecycle

python scripts/run_benchmark.py owns the full-API Locust measurement family. The default command writes both mutable outputs under the ignored runtime artifact directory:

  • .artifacts/benchmark/benchmark.md — human-readable report;
  • .artifacts/benchmark/current.json — machine-readable results consumed by the performance comparison gate.

Re-running the command replaces those runtime files. The script refuses to write this lifecycle page, an archived snapshot, or the canonical docs/benchmark-baseline.json, so a benchmark run cannot silently mutate tracked documentation or its release-gate input.

Tracked evidence

The last report formerly stored at this path is preserved as the immutable 2026-04-17 historical snapshot. It records a local 20-user, 30-second run and is not the current release gate.

Full-load measurements depend on the host, timestamp, service state, and live request sample, so they have no byte-for-byte regeneration check. CI generates fresh ignored artifacts and compares their JSON metrics with docs/benchmark-baseline.json through scripts/check_performance.py. The baseline is a reviewed, read-only gate input calibrated by the dated 2026-05-24 CI hardware decision, not a runtime output generated by the benchmark harness. This is the only current full-load comparison path.

The earlier scripts/benchmark_compare.py p95-only comparator had no current workflow, documentation, or test consumer and is retired. Its sole tracked input is preserved unchanged as the 2026-04-12 comparator baseline. That snapshot is historical generated state, not a current gate or a baseline to update.

Promote a release-worthy measurement into docs/perf/ only with a date-stamped filename, its JSON companion, and exact run/host/source provenance; never recreate a mutable tracked "latest" report.

For the repeatable entity-only procedure and its comparability rules, use the entity latency benchmark contract.