benchdiff

command module
v0.0.0-...-cb635f3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Command benchdiff runs Go benchmarks on two git refs and uses benchstat to show the delta.

By default, the base ref is HEAD and the head ref is the current worktree. Use the -base-ref and -head-ref flags to specify different refs.

To pass flags to "go test", pass them after a double dash. For example:

benchdiff -- -benchmem

Non-worktree runs are cached. To clear the cache, use the -clear-cache flag.

Benchmarking the standard library is supported.

On macOS, benchdiff will attempt to prevent the system from sleeping.

This is inspired by and based on github.com/willabides/benchdiff, although the interface has significantly diverged.

Jump to

Keyboard shortcuts

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