Hook bench split — Tinybench p99 explorer

Dial the workload + load conditions to see why a single absolute wall-clock assertion fails. The same p99 that passes locally fails under coverage + parallel workers — even though throughput is unchanged. Branch: test/perf-bench-split

1 · Workload

50 KB

2 · Runtime environment

TODAY — absolute test assertion

ms
scenariop99 (ms)verdict
Failure here means CI blocks the merge — even if the function got no slower.

AFTER — bench + ratio signal

scenariop99 (ms)ratio vs baseline
Ratios cancel hardware/load variance. Catastrophic backtracking shows up as ≥10x.

Why p99, not max — quick demo

signalhealthybacktrackcaught?
max moves with every GC pause too — high false-positive rate. p99 stays put until many samples slow down — strong signal, low false positives.