Documentation
¶
Overview ¶
Binary bench-report compares two Go benchmark result files and outputs a markdown comparison table. Optionally posts/updates a PR comment on GitHub.
Usage:
bench-report -old baseline.txt -new current.txt bench-report -old baseline.txt -new current.txt -pr 48 -repo owner/repo
Benchmark files are standard Go test -bench output:
BenchmarkFoo-24 1000 1234567 ns/op 5678 B/op 12 allocs/op
When -pr is set, the tool posts or updates a comment on the PR using `gh api`. A marker comment (<!-- bench-report -->) ensures only one comment exists — subsequent runs update it instead of creating duplicates.
Click to show internal directories.
Click to hide internal directories.