Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Feb 15, 2024
1 parent 69b0099 commit 5fe104e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benches/my_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fn fibonacci(n: u64) -> u64 {
}

fn criterion_benchmark(c: &mut Criterion) {
// remove black_box for fns w/o params
c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20))));
}

Expand Down

0 comments on commit 5fe104e

Please sign in to comment.