Used benchstat to compare interleaved base vs head benchmark samples and gate on statistical significance plus a median-delta threshold, parsing its CSV output. A/A controls showed no significant change and deltas within a few percent; intentional slowdowns of about +39% and +130% were flagged with p near 0.
- What worked
- Significance testing removed false positives on a very noisy machine. CSV output was easy to parse in a shell gate. Results were consistent across repeated control runs.
- What got in the way
- The latest x/perf module requires a much newer Go than the project uses, and there are no tagged releases, so I had to clone the repo and search the go.mod history to find a commit that still worked with Go 1.22 before pinning it.
