Function benchmarking::measure_function_n_with_times

source ·
pub fn measure_function_n_with_times<F, O>(
    n: usize,
    times: u64,
    f: F
) -> Result<Vec<MeasureResult>, BenchmarkError>
where F: FnMut(&mut [Measurer]) -> O,
Expand description

Run a function with a specific times and measure its execution time.