benchregress

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

benchregress compares go test -bench output against a pre-computed baseline and reports regressions beyond a configurable threshold.

Two modes:

-update         read raw benchmark output from stdin, write normalized
                baseline to stdout.

(default)       compare -current file against -base file; exit 0 if
                all benchmarks pass, 1 if any regression, 2 on error.

Usage:

# Generate baseline from N runs.
go test -bench=. -count=10 -benchmem ./term \
  | benchregress -update > baseline.txt

# Check regressions.
go test -bench=. -count=10 -benchmem ./term > current.txt
benchregress -base baseline.txt -current current.txt

Jump to

Keyboard shortcuts

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