grass/benches/control_flow.rs

12 lines
331 B
Rust
Raw Normal View History

2020-05-20 00:15:05 -04:00
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use grass::StyleSheet;
pub fn big_for(c: &mut Criterion) {
c.bench_function("big_for", |b| {
b.iter(|| StyleSheet::new(black_box(include_str!("big_for.scss").to_string())))
});
}
criterion_group!(benches, big_for);
criterion_main!(benches);