[−][src]Function benchmarking::bench_function
pub fn bench_function<F>(f: F) -> Result<MeasureResult, BenchmarkError> where
F: FnMut(&mut Measurer) + 'static,
Run a function for 5 seconds and measure its execution time.
pub fn bench_function<F>(f: F) -> Result<MeasureResult, BenchmarkError> where
F: FnMut(&mut Measurer) + 'static,
Run a function for 5 seconds and measure its execution time.