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

iai bench

This commit is contained in:
Robin Appelman 2021-02-12 23:00:18 +01:00
commit 0d99a9510b
6 changed files with 51 additions and 3 deletions

View file

@ -37,7 +37,7 @@ impl MessageHandler for AllMessages {
fn bench_all(input_file: &str, b: &mut Bencher) {
let file = fs::read(input_file).expect("Unable to read file");
let demo = Demo::new(file);
let demo = Demo::new(&file);
let stream = demo.get_stream();
b.iter(|| {
let _ = test::black_box(