← back
try it on your repo
Pick two commits of a Go repo and this compares their benchmarks with the same idea behind the Pebble and S2 dashboards: only changes bigger than each benchmark’s own noise get flagged, and speed, memory and allocations are checked separately. Both commits are built, and their benchmarks run in turns so any noise hits both equally.
It runs on your GitHub Actions, not on my computer. You add one workflow file to your repo, press run, and drop the result on the report page. The repo needs Go benchmarks (func BenchmarkX(b *testing.B)) and you need to be able to push to it. For someone else's project, fork it first.
1repository
2commits
Load a repo to list its latest commits. Click one to compare it against the commit right before it.
3options
Big repos have many benchmarks. Narrowing the regex or packages makes each run faster, which leaves room for more samples. If a run would go over the budget it takes fewer samples (never under 5) and says so.
4workflow
Save this as .github/workflows/regression-check.yml on your default branch. The two commits above are filled in as defaults, and you can change them each time you run it.
Fill in steps 1 and 2 first.
5run it
- Open your repo's Actions tab → regression check, then press Run workflow.
- Wait for it to finish. The run's summary page shows a short table right away.
- For the full picture, download the
regression-report file at the bottom of the run page and drop it on the report page. It stays in your browser, nothing is uploaded. Here's an example from the Pebble regression.
The script it runs is regcheck.py, one file of plain Python. The workflow checks its SHA-256 before running it, so it runs exactly the version you saw here or nothing at all. It only gets read access to your repo.