bench_function_n

Function bench_function_n 

Source
pub fn bench_function_n<F, O>(
    n: usize,
    f: F,
) -> Result<Vec<MeasureResult>, BenchmarkError>
where F: FnMut(&mut [Measurer]) -> O,
Expand description

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