measure_function

Function measure_function 

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

Run a function 10 times and measure its execution time.