rainbow-rs/benches/sbocco.rs

14 lines
365 B
Rust
Raw Normal View History

2018-09-20 17:27:02 +02:00
#[macro_use]
extern crate criterion;
use criterion::Criterion;
use rainbowcazzi::rainbow;
fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("sbocco", |b| b.iter(|| rainbow("assets/sbocco")));
c.bench_function("sbocchino", |b| b.iter(|| rainbow("assets/sbocchino")));
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);