pub fn assert_benchmarks(
reports: &[WorkerReport],
max_p99_ns: Option<u64>,
max_cv: Option<f64>,
min_iter_rate: Option<f64>,
) -> AssertResultExpand description
Check benchmarking metrics: p99 wake latency, wake latency CV, and minimum iteration rate.
min_iter_rate is a floor on each worker’s CPU-denominated
iteration rate — iterations / cpu_time_sec, the iterations per
CPU-second the worker actually received. This is intrinsically
dilation-safe: host preemption inflates wall time but not CPU
time, so the verdict measures the workload, not the host. In
performance mode (wall ≈ CPU) it reproduces the old wall-rate
number. A worker with cpu_time_ns == 0 has a rate of 0 and
fails any positive floor (no CPU time spent ⇒ no work proven).
// p99 = 500ns, well under 10000ns limit.
assert!(assert_benchmarks(&[report], Some(10000), None, None).is_pass());