use criterion::{black_box, criterion_group, criterion_main, Criterion}; fn criterion_benchmark(c: &mut Criterion) { let svg = r#" "#; c.bench_function("minify_svg", |b| { b.iter(|| spacebadgers_utils::minify::minify_svg(black_box(svg))) }); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches);