Skip to content

Instantly share code, notes, and snippets.

@yamafaktory
Created January 26, 2019 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamafaktory/689c1bbf69de70f8686719872b0de72f to your computer and use it in GitHub Desktop.
Save yamafaktory/689c1bbf69de70f8686719872b0de72f to your computer and use it in GitHub Desktop.
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