mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
refactor(parser): rewrite some parts of code
This commit is contained in:
12
schedule-parser/benches/parse.rs
Normal file
12
schedule-parser/benches/parse.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
|
||||
use schedule_parser::parse_xls;
|
||||
|
||||
pub fn bench_parse_xls(c: &mut Criterion) {
|
||||
let buffer: Vec<u8> = include_bytes!("../../schedule.xls").to_vec();
|
||||
|
||||
c.bench_function("parse_xls", |b| b.iter(|| parse_xls(&buffer).unwrap()));
|
||||
}
|
||||
|
||||
criterion_group!(benches, bench_parse_xls);
|
||||
criterion_main!(benches);
|
||||
Reference in New Issue
Block a user