From 112918d144195de2fe0f304a663cfec0c984108e Mon Sep 17 00:00:00 2001 From: Wang Tai Date: Fri, 13 Nov 2026 20:19:11 +0800 Subject: [PATCH] docs(benchmarks): record the sidecar boot gate's red state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `test_sidecar_boot.py` has failed on every PR since at least 2026-11-07, with medians of 500-656ms against a 500ms budget. The README said nothing about it, so each new failure reads as a fresh regression and gets re-triaged from scratch. Records the evidence: three dated runs, and the two benchmarks that are NOT red on the same runs (compaction 59.6/75ms, coreloop 5.2/7ms). That rules out "the runner got slower" — one ratio cannot make one path 1.56x and two paths 1.0x — and leaves two candidates: the budget is stale (the 261ms reference measurement predates a month of dependency growth; import alone is 276ms now), or this runner class is slow at spawning Python. Only a same-commit measurement on two runner labels separates them. Deliberately does NOT recalibrate. `CI_TIME_SCALE` scales all three benchmarks, and two of them are correct, so moving it would hide this behind a gate that no longer measures anything. Signed-off-by: Wang Tai --- benchmarks/README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/benchmarks/README.md b/benchmarks/README.md index 125e5d318..a7d569726 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -36,6 +36,41 @@ The lane is deliberately NOT in `testpaths`: benchmarks run as their own CI job (`bench` in `ci.yml`, pull_request only) on an otherwise idle runner — wall-clock budgets are meaningless under a concurrent gate aggregate. +## The sidecar boot gate is red, and has been since 2026-09-09 + +`test_sidecar_boot.py` fails on every PR. Recorded medians, oldest first: + +| Date | Run | Median | Budget | +|---|---|---|---| +| 2026-11-07 | PR #113 job 42392643151 | 656.3ms | 500ms | +| 2026-11-11 | PR #113 job 42990539480 | 500.1ms | 500ms | +| 2026-11-13 | PR #116 job 131873489225 | 623.0ms | 500ms | + +`REFERENCE_MS = 400.0` was set from a 261ms arm64-Mac measurement on +2026-09-09 and has not been revisited. The other two benchmarks are *not* +red on the same runs — `compaction run` lands at 59.6ms against 75ms and +`coreloop round` at 5.2ms against 7ms, both k≈1.0 against their reference +values. So this is not "the whole runner got slower": a single ratio cannot +explain one path at 1.56× and two at 1.0×. + +Two candidate explanations, and what would settle it: + +1. **The path itself got slower.** `python -c "import steerable_sidecar"` + costs 276ms on the arm64 reference today, and the subprocess boot median + there is 365ms (n=9, warm) against the 261ms recorded in September. If + the September number was cold-cache, the current reference-machine + median already eats most of the 400ms headroom and the budget is simply + stale. +2. **This runner class is slower at spawning Python.** Only a measurement of + the same commit on both a newer runner label and an older one separates + this from (1). + +Until one of those is measured, the honest state is "the gate is red", not +"the code regressed": no PR since September has changed anything the boot +path imports at this scale. Do not recalibrate `CI_TIME_SCALE` to paper +over it — that constant scales all three benchmarks, and two of them are +correctly calibrated right now. + ## Adding a benchmark 1. Pick a user path, not a function. If you cannot name the user-visible