Benchmark metrics history
hotpath-cloud builds a performance history from every benchmark report your CI uploads. You can follow any metric across the commits of a branch or a pull request:
- CPU instruction counts measured with Callgrind,
- wall-clock execution time,
- memory allocations,
- the same metrics for individual functions labeled with
#[hotpath::measure(label = "...")].
A single report tells you how a commit performed, and a diff compares it with one baseline. The history shows the whole trend at once: when a metric moved, by how much, and how much it fluctuates when nothing changed.
Not every metric is equally stable
To measure CI noise, we pushed 100 empty commits to a pull request in the hotpath-rs repository. Each commit ran the same drain benchmark on a GitHub-hosted x86 runner, with identical code every time. Here is its wall time across those runs:
The slowest run took 156.74% longer than the fastest. Over the same runs, the CPU instruction count varied by only 0.13%:
Allocated bytes were identical in every run.
Since the code never changed, every difference between these runs is measurement noise. A 5% wall-time regression would be lost in it, while a 1% change in instruction count would stand out. These results hold for this benchmark on these runners. Multithreaded code, I/O or nondeterministic workloads can make instruction counts and allocations vary too. Instruction counts also miss effects such as cache locality, so they don’t replace timing. Rust Benchmarking: How to Detect Performance Regressions in CI has the full analysis, including ARM runners and existing Criterion benchmarks.
Using the history
Open a benchmark in the hotpath-cloud dashboard and click Performance history. Pull request comments and report pages link to the history of their pull request.
- Choose a branch or a pull request.
- Pick a run total, such as instruction count, wall time or allocated bytes, or drill down into a labeled function’s metric.
- Read the trend and the summary above the chart: the median, the extremes and the spread. Each point links to its full report.
On a branch, the chart mixes real performance changes with noise. A pull request with repeated runs of unchanged code, like the one above, shows the noise on its own. Use that observed noise as a starting point when you choose regression policy thresholds or performance budgets. A threshold inside the noise flags changes that never happened. Treat the observed spread as an estimate from a finite sample, not a guaranteed bound.
The same reports are available as JSON through the hotpath cloud CLI and the API and MCP server, for analysis the charts don’t cover.