A performance regression gate is a test that runs a benchmark on the current build and on a candidate, on the same machine, and refuses the candidate if a latency statistic is worse by more than a stated tolerance with a stated confidence.
bench_gate.py.fig_gate.py (deterministic, from the measured pools).