mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
Скачивание XLS документа по ссылке
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
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")))
|
||||
});
|
||||
let buffer: Vec<u8> = include_bytes!("../../../schedule.xls").to_vec();
|
||||
|
||||
c.bench_function("parse_xls", |b| b.iter(|| parse_xls(&buffer)));
|
||||
}
|
||||
|
||||
criterion_group!(benches, bench_parse_xls);
|
||||
|
||||
Reference in New Issue
Block a user