mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
Первый коммит
This commit is contained in:
12
lib/schedule_parser/benches/parse.rs
Normal file
12
lib/schedule_parser/benches/parse.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use schedule_parser::parse_xls;
|
||||
use std::path::Path;
|
||||
|
||||
pub fn bench_parse_xls(c: &mut Criterion) {
|
||||
c.bench_function("parse_xls", |b| {
|
||||
b.iter(|| parse_xls(Path::new("../../schedule.xls")))
|
||||
});
|
||||
}
|
||||
|
||||
criterion_group!(benches, bench_parse_xls);
|
||||
criterion_main!(benches);
|
||||
Reference in New Issue
Block a user