14 lines
365 B
Rust
14 lines
365 B
Rust
|
#[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);
|