pub fn benchmark_function<F, T, R>( func: F, data: &[T], operation_name: &str, iterations: usize, ) -> PerformanceResultwhere F: Fn(&[T]) -> R, T: Clone,
Benchmark a function and return performance metrics