perfgate-host-detect
Host mismatch detection for benchmarking noise reduction.
Part of the perfgate workspace.
Overview
Detects host environment differences between baseline and current benchmark runs. Host mismatches can introduce significant noise into performance measurements, leading to false positives or negatives.
Detection Criteria
| Signal | Threshold | Example |
|---|---|---|
| OS | Any difference | linux vs windows |
| Architecture | Any difference | x86_64 vs aarch64 |
| CPU count | > 2× ratio | 4 vs 16 CPUs |
| Memory | > 2× ratio | 8 GB vs 32 GB |
| Hostname hash | Different (if both set) | Different machines |
Key API
detect_host_mismatch(baseline, current)— returnsOption<HostMismatchInfo>with mismatch reasons
Example
use detect_host_mismatch;
use HostInfo;
let baseline = HostInfo ;
let current = HostInfo ;
assert!;
License
Licensed under either Apache-2.0 or MIT.