test(fuzz): count a stage as slow only if it fails three measurements in a row #214
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!214
Loading…
Reference in a new issue
No description provided.
Delete branch "test/fuzz-pathological-retry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)onranges 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_EXPONENTin each ofATTEMPTS(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 bracesstill fails atformat: n^1.99.No changeset:
fuzz/is private.