Skip to main content

benchmark_function

Function benchmark_function 

Source
pub fn benchmark_function<F, T>(
    f: F,
    iterations: u32,
) -> PerformanceResult<PerformanceMetrics>
where F: Fn() -> T,
Expand description

Benchmark a function and return performance metrics