mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
13 lines
342 B
Rust
13 lines
342 B
Rust
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);
|