Skip to content

Commandline tool to compare Go benchmarks against each other.

speedyhoon/benchtime

Repository files navigation

benchtime

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.

Usage:

Pipe

Pipe the standard output from go test directly into benchtime.

go test -bench . -benchmem -shuffle on -count 20 | benchtime

Benchmark Data file

  1. Generate some benchmark data to bench.log file:
    go test -bench . -benchmem -shuffle on -count 20 > bench.log
  2. Then process the benchmark data in bench.log:
    benchtime bench.log

Install

go install github.com/speedyhoon/benchtime/benchtime@latest

About

Commandline tool to compare Go benchmarks against each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages