Skip to content

Commit

Permalink
Add an interesting data point for fibonacci
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG2 committed Nov 8, 2023
1 parent c7a91a6 commit 03977c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn criterion_benchmark(c: &mut Criterion) {
) {
let group_name = format!("fibonacci/{backend_name}");
let mut group = c.benchmark_group(group_name);
for size in [1, 2, 4, 8, 16, 20, 24, 28, 30, 32, 34] {
for size in [1, 2, 4, 8, 12, 16, 20, 24, 28, 30, 32, 34] {
let phi = (1.0 + 5.0f64.sqrt()) / 2.0;
group.throughput(criterion::Throughput::Elements(
phi.powi(i32::try_from(size).unwrap()) as u64,
Expand Down

0 comments on commit 03977c7

Please sign in to comment.