Skip to content

Commit

Permalink
Bench day 25
Browse files Browse the repository at this point in the history
  • Loading branch information
EbbDrop committed Dec 26, 2024
1 parent b788072 commit 0f62a2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benches/bench_days.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ macro_rules! benches_day {
[<day $day_num>]::part1(black_box(input))
}
group.bench_with_input(format!("day{}_part1", $day_num), input, |b, i| b.iter(|| routine_part1(i)));
#[inline(never)]
fn routine_part2(input: &str) -> impl Display + '_ {
[<day $day_num>]::part2(black_box(input))
}
group.bench_with_input(format!("day{}_part2", $day_num), input, |b, i| b.iter(|| routine_part2(i)));
// #[inline(never)]
// fn routine_part2(input: &str) -> impl Display + '_ {
// [<day $day_num>]::part2(black_box(input))
// }
// group.bench_with_input(format!("day{}_part2", $day_num), input, |b, i| b.iter(|| routine_part2(i)));
}
}
};
Expand All @@ -48,4 +48,4 @@ macro_rules! benches {
};
}

benches!(24);
benches!(25);

0 comments on commit 0f62a2a

Please sign in to comment.