use criterion::*;
// Better real world benchmarks: https://github.com/y21/rust-html-parser-benchmark
const INPUT: &str = r#"
Example Domain
Example Domain
This domain is for use in illustrative examples in documents. You may use this
domain in literature without prior coordination or asking for permission.
More information...
"#;
pub fn criterion_benchmark(cr: &mut Criterion) {
cr.bench_function("tl", |b| {
b.iter(|| {
let _ = tl::parse(black_box(INPUT), tl::ParserOptions::default());
});
});
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);