#[macro_use] extern crate criterion; extern crate clean_path; use criterion::black_box; use criterion::Criterion; use clean_path::clean; fn clean_benchmark(c: &mut Criterion) { c.bench_function("clean", |b| { b.iter(|| clean(black_box("abc/../../././../def"))) }); } criterion_group!(benches, clean_benchmark); criterion_main!(benches);