test(fuzz): count a stage as slow only if it fails three measurements in a row #214

Merged
abiwab merged 1 commit from test/fuzz-pathological-retry into main 2026-11-21 21:14:21 +01:00
Owner

The worst-case growth test failed in CI on #212 with compile: n^1.19 (1.9 ms at 3125, 52.8 ms at 50000) on ranges and sums in series. Compile is linear there (locally 0.74 to 1.03 over eight measurements, same on main and on #212): on the slower runner it crosses the 20 ms noise floor, and with a ~2 ms small measurement one GC pause is enough to push the ratio past 1.15.

A stage now counts as slow only if it is above MAX_EXPONENT in each of ATTEMPTS (3) measurements in a row, reporting the lowest exponent seen. A passing case stops after the first measurement, so the usual run costs the same. A real super-linear stage stays above the line every time: with the formatter from before #210 restored, nested opening braces still fails at format: n^1.99.

No changeset: fuzz/ is private.

The worst-case growth test failed in CI on #212 with `compile: n^1.19 (1.9 ms at 3125, 52.8 ms at 50000)` on `ranges and sums in series`. Compile is linear there (locally 0.74 to 1.03 over eight measurements, same on main and on #212): on the slower runner it crosses the 20 ms noise floor, and with a ~2 ms small measurement one GC pause is enough to push the ratio past 1.15. A stage now counts as slow only if it is above `MAX_EXPONENT` in each of `ATTEMPTS` (3) measurements in a row, reporting the lowest exponent seen. A passing case stops after the first measurement, so the usual run costs the same. A real super-linear stage stays above the line every time: with the formatter from before #210 restored, `nested opening braces` still fails at `format: n^1.99`. No changeset: `fuzz/` is private.
test(fuzz): count a stage as slow only if it fails three measurements in a row
All checks were successful
CI / Build & Test (pull_request) Successful in 4m34s
ffa45b27f6
abiwab merged commit 43e634dda0 into main 2026-11-21 21:14:21 +01:00
abiwab deleted branch test/fuzz-pathological-retry 2026-11-21 21:14:22 +01:00
Sign in to join this conversation.
No description provided.