bench_function

Function bench_function 

Source
pub fn bench_function<F, O>(f: F) -> Result<MeasureResult, BenchmarkError>
where F: FnMut(&mut Measurer) -> O,
Expand description

Run a function for 5 seconds and measure its execution time.