pub fn benchmark_function<F, R>(
f: F,
iterations: usize,
warmup_iterations: usize,
) -> BenchmarkResultwhere
F: Fn() -> R,
Expand description
Benchmark a function multiple times
pub fn benchmark_function<F, R>(
f: F,
iterations: usize,
warmup_iterations: usize,
) -> BenchmarkResultwhere
F: Fn() -> R,
Benchmark a function multiple times