bench-report

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL