mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
iai bench
This commit is contained in:
parent
e8143720a5
commit
0d99a9510b
6 changed files with 51 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ use tf_demo_parser::{Demo, DemoParser, Stream};
|
|||
|
||||
fn bench_file(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: Stream = demo.get_stream();
|
||||
|
||||
b.iter(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue