Skip to content

Commit

Permalink
benches: use default config
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Mar 25, 2023
1 parent f625ad0 commit 03c1abd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions benches/bench.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, fs::File, time::Duration};
use std::{env, fs::File};

use boon::{Compiler, Schemas};
use criterion::{criterion_group, criterion_main, Criterion};
Expand All @@ -22,9 +22,5 @@ pub fn validate(c: &mut Criterion) {
c.bench_function("boon", |b| b.iter(|| schemas.validate(&inst, sch).unwrap()));
}

criterion_group!(
name = benches;
config = Criterion::default().measurement_time(Duration::from_secs(20));
targets = validate
);
criterion_group!(benches, validate);
criterion_main!(benches);

0 comments on commit 03c1abd

Please sign in to comment.