mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
BenchmarkHistoryReadFilter timed two functions: filterMetricsByTime, which ships, and legacyHistoryReadFilter, a reference that lives in the test file. The legacy rows failed the Benchmarks gate on unrelated pull requests, naming only those rows in 5 of 69 shard 0 comparisons over about 2.5 days, including PR 4014. The cause is code layout. A change anywhere earlier in the test binary can move the function 32 bytes, and its loop then settles on a different speed with identical instructions. On EPYC 7763 runners the function's address predicted its timing in all 40 retained binaries. Keeping a row that flips by up to 20% for a function users never run only teaches people to ignore the gate. The reference stays as the semantics check. The shipped rows are now named HistoryReadFilter/<case>, so the first comparison across this change has no matching rows and sets a new baseline. They are still layout-sensitive, reaching +9.43% on EPYC 7763, under the 10% gate.