multi_thread_bench_function_n

Function multi_thread_bench_function_n 

Source
pub fn multi_thread_bench_function_n<F, O>(
    n: usize,
    number_of_threads: usize,
    f: F,
) -> Result<Vec<MeasureResult>, BenchmarkError>
where F: Fn(&mut [Measurer]) -> O + Send + Sync + 'static,
Expand description

Run a function with a number of threads for 5 seconds and measure its execution time.