A commandline tool to compare several Go benchmarks against each other. Handy for determining which function is the most performant.
If you want to compare the same benchmark between different versions use benchstat or benchmany for running Go benchmarks across many git commits.
Pipe the standard output from go test directly into benchtime.
go test -bench . -benchmem -shuffle on -count 20 | benchtime- Generate some benchmark data to
bench.logfile:go test -bench . -benchmem -shuffle on -count 20 > bench.log
- Then process the benchmark data in
bench.log:benchtime bench.log
go install github.com/speedyhoon/benchtime/benchtime@latest