rainbow-rs/benches/sbocco.rs
2018-09-28 17:00:10 +02:00

15 lines
392 B
Rust

#[macro_use]
extern crate criterion;
extern crate rainbowcazzi;
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);