use criterion::{criterion_group, Criterion}; use commons::math::*; fn bench_math(c: &mut Criterion) { c.bench_function("average", |b| { b.iter(|| average(&[5.0, 2.0, 2.4, 13.13, 32.3])) }); } criterion_group!(math, bench_math);