mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
fix benches
This commit is contained in:
parent
826190419b
commit
8bd4eabae0
3 changed files with 10 additions and 5 deletions
|
|
@ -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(),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue