benchdiff

command
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command benchdiff compares two benchmark result files written by the detection benchmark harness ($BENCH_OUT, one JSON object per line; see test/benchmark/harness/bench_out.go) and reports what changed per (case, module): pass/fail, finding counts and request counts.

It exits 1 when HEAD regresses against BASE: a case that passed now fails, a case that found something now finds less, or a case disappeared. Request growth beyond the tolerance is reported but only fails with -strict-requests.

go run ./test/tools/benchdiff -base base.jsonl -head head.jsonl
make bench-diff BASE=base.jsonl HEAD=head.jsonl

Jump to

Keyboard shortcuts

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