Skip to content

Commit

Permalink
2023-16: Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Feb 10, 2024
1 parent 1b6252e commit 0849352
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/core/src/year2023/day16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ pub fn tests() {
test_part_one_no_allocations!(test_input => 46);
test_part_two_no_allocations!(test_input => 51);

let test_input = "|.........................................";
test_part_one_no_allocations!(test_input => 1);
test_part_two_no_allocations!(test_input => 42);

let real_input = include_str!("day16_input.txt");
test_part_one_no_allocations!(real_input => 6361);
test_part_two_no_allocations!(real_input => 6701);
Expand Down

1 comment on commit 0849352

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@                     Benchmark Difference                    @@
#     Name   Old (instructions)   New (instructions)   Change (%)
  2023_1_1            1,453,092            1,453,092            0
  2023_1_2            1,426,962            1,426,962            0
  2023_2_1              614,172              614,172            0
  2023_2_2              590,112              590,112            0
  2023_3_1              929,099              929,099            0
  2023_3_2              674,746              674,746            0
Benchmark Instructions (count) Instructions (%)
2023_1_1 1,453,092 25.5
2023_1_2 1,426,962 25.1
2023_3_1 929,099 16.3
2023_3_2 674,746 11.9
2023_2_1 614,172 10.8
2023_2_2 590,112 10.4

Please sign in to comment.