1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

fix benches

This commit is contained in:
Robin Appelman 2019-12-25 23:39:38 +01:00
commit 8bd4eabae0
3 changed files with 10 additions and 5 deletions

View file

@ -40,8 +40,11 @@ fn bench_all(input_file: &str, b: &mut Bencher) {
let demo = Demo::new(file);
let stream = demo.get_stream();
b.iter(|| {
let _ =
test::black_box(DemoParser::new_with_analyser(stream.clone(), AllMessages).unwrap());
let _ = test::black_box(
DemoParser::new_with_analyser(stream.clone(), AllMessages)
.parse()
.unwrap(),
);
});
}