Skip to main content

benchmark_function

Function benchmark_function 

Source
pub fn benchmark_function<F, T, R>(
    func: F,
    data: &[T],
    operation_name: &str,
    iterations: usize,
) -> PerformanceResult
where F: Fn(&[T]) -> R, T: Clone,
Expand description

Benchmark a function and return performance metrics