Created
January 26, 2019 23:15
-
-
Save yamafaktory/689c1bbf69de70f8686719872b0de72f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use criterion::{criterion_group, criterion_main, Criterion}; | |
fn minus_one_benchmark(c: &mut Criterion) { | |
c.bench_function("Bench the minus one function", |b| b.iter(|| minus_one(1))); | |
} | |
criterion_group!(benches, minus_one_benchmark); | |
criterion_main!(benches); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment