use criterion::{black_box, criterion_group, criterion_main, Criterion}; use bioform::{BioFormat, parser}; pub fn criterion_benchmark(c: &mut Criterion) { let data = std::fs::read_to_string("test_files/hg38_chr1.fa").unwrap(); c.bench_function("FASTA parsing",|b| b.iter_with_large_drop(|| parser::try_fasta_dna(&data).unwrap() )); } criterion_group!{ name = benches; config = Criterion::default().sample_size(10); targets = criterion_benchmark } criterion_main!(benches);