use criterion::{criterion_group, criterion_main, Criterion}; use opengl_registry::Registry; fn bench_registry(crit: &mut Criterion) { crit.bench_function("retrieve registry from included XML file", |bencher| { bencher.iter(|| Registry::retrieve().unwrap()) }); } criterion_group!(benches, bench_registry); criterion_main!(benches);