bencher noise CLI Subcommand
bencher noise
The bencher noise CLI subcommand measures environment noise to help you understand how reliable your benchmark results will be.
It runs a series of micro-benchmarks and collects platform metrics to produce a composite noise score.
The following measurements are performed:
- Compute Jitter: Measures CPU computation consistency by running tight arithmetic loops and tracking the coefficient of variation (CoV) across iterations.
- Cache Jitter: Measures memory cache access consistency by performing sequential reads across a buffer sized to the L3 cache.
- I/O Jitter: Measures filesystem I/O consistency by writing and reading temporary files and tracking timing variation.
- CPU Steal: On virtualized platforms, detects how much CPU time is being taken by the hypervisor.
- Noise Score: A composite score (0 to 100 dB) combining all measurements into a single indicator of environment noise level.
bencher noise Usage
bencher noise [OPTIONS]Options
--duration <SECONDS>
Total measurement duration in seconds.
Default: 30
--format <FORMAT>
Output format for the noise report.
human: Human-readable terminal output with visual noise bars and advice.json: BMF (Bencher Metric Format) JSON output, suitable for piping tobencher run. Its version is set with the--bmf-versionoption.
Default: human
--bmf-version <BMF_VERSION>
The BMF version of the json output format, either 0 or 1.
bencher noise does not read your Project’s version, so a version 0 Project needs --bmf-version 0.
At version 1, the output has these Benchmarks:
bencher::noise::compute_jitter,bencher::noise::cache_jitter, andbencher::noise::io_jitter, each with two Measures:- Its jitter Measure (
compute-jitter,cache-jitter, orio-jitter) with thecovMetric, the coefficient of variation as a percentage - The
latencyMeasure with themean,std_dev, andp99Metrics of the same samples, in nanoseconds
- Its jitter Measure (
bencher::noise::cpu_steal, when the platform reports CPU steal, with thecpu-stealMeasure and itsvalueMetricbencher::noise::compositewith thenoise-scoreMeasure and itsvalueMetric
At version 0, every Measure has only a value, which is the coefficient of variation for each jitter Measure, and there is no latency Measure.
A Project that moves from version 0 to version 1 starts a new history for each jitter Measure, since its Metric is now cov.
Default: 1
--quiet
Suppress progress output and only print the final result. Useful for scripting and CI environments.
--help
Print help.