Skip to main content

Module compare

Module compare 

Source
Expand description

Compare one commit’s measurements against another’s.

This is the part that can block a pull request, so it is deliberately narrow about what it will fail on. Only instruction counts gate. Wall clock is reported beside them and never gated: on identical hardware it moves 4-20% run to run, so a threshold tight enough to catch a real regression fires constantly, and one loose enough to stay quiet catches nothing.

Rendering lives in markdown, separate from the comparison itself, so a chart or a different report format is a new function rather than a rewrite.

Structs§

Change
One metric, on one series, on both sides.
Comparison

Constants§

GATED_METRIC
The only metric a gate may fire on.

Functions§

compare
Compare two sets of records.
markdown
sparkline
A sparkline, scaled to the series’ own range.

Type Aliases§

Key
What identifies a comparable series.
Trend
Recent values for each series, oldest first.