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

parser api wip

This commit is contained in:
Robin Appelman 2019-12-22 15:47:00 +01:00
commit 42358f243b
12 changed files with 52 additions and 56 deletions

View file

@ -13,7 +13,7 @@ fn bench_file(input_file: &str, b: &mut Bencher) {
let stream: Stream = demo.get_stream();
b.iter(|| {
let (_, state) = DemoParser::parse_demo(stream.clone()).unwrap();
let (_, state) = DemoParser::new(stream.clone()).unwrap();
test::black_box(state);
})
}