blob: 27dc65d67b79a2fc0ff597002232ccc50bae6abf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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);
|