core::bench
API 참조는 영어로만 있습니다. 표준 라이브러리 소스의 영어 문서 주석에서 만듭니다.
the engine nabi bench drives.
A #[bench] fn takes a Bench and calls iter on the code to measure;
work set up outside iter is not timed. iter calibrates the call
count, warms up, samples, and reports median (+/- MAD) with Tukey
outlier detection and GC-aware sample classification. Statistics and
formatting live here; the runner only orchestrates the processes.
Structs
BenchSource
pub struct BenchA benchmark's measuring handle: the generated harness passes one to
each #[bench] fn, which calls iter with the code to time.
Report throughput:
nbytes processed per call.Report throughput:
nitems processed per call.Measure
f. Calibrate (unless fixed), warm up, sample, report.
Trait implementations 1
impl Debug for Bench