My Advent of Code 2022 solutions in the Rust programming language.
Structure of solutions modeled after https://github.com/ahmadkaouk/advent-of-code-2021
# Run all the days
cargo run --release
# Test a specific day
cargo test --bin day01
#Run a specific day
cargo run --release --bin day01
cargo bench
Problem | Part 1 | Part 2 | |
---|---|---|---|
Day 1 | Problem 1 | 0.069 ms | 0.079 ms |
Day 2 | Problem 2 | 0.105 ms | 0.106 ms |
Day 3 | Problem 3 | 0.054 ms | 0.026 ms |
Day 4 | Problem 4 | 0.569 ms | 0.563 ms |
Day 5 | Problem 5 | 0.340 ms | 0.423 ms |
Day 6 | Problem 6 | 0.208 ms | 0.928 ms |
Day 7 | Problem 7 | 0.116 ms | 0.130 ms |
Day 8 | Problem 8 | 0.706 ms | 0.644 ms |
Day 9 | Problem 9 | 0.785 ms | 1.230 ms |
Day 10 | Problem 10 | 0.011 ms | 0.013 ms |
Day 11 | Problem 11 | 0.042 ms | 22.406 ms |
Day 12 | Problem 12 | 0.231 ms | 45.157 ms |
Day 13 | Problem 13 | 0.758 ms | 1.465 ms |
Day 14 | Problem 14 | 2.595 ms | 12.893 ms |
Day 15 | Problem 15 | 316.156 ms | 754.554 ms |
Day 16 | Problem 16 | 743.808 ms | 2557.065 ms |
Day 17 | Problem 17 | 0.359 ms | 234.074 ms |
Day 18 | Problem 18 | 6.121 ms | 0.630 ms |
Day 19 | Problem 19 | N/A ms | N/A ms |
Day 20 | Problem 20 | N/A ms | N/A ms |
Day 21 | Problem 21 | N/A ms | N/A ms |
Day 22 | Problem 22 | N/A ms | N/A ms |
Day 23 | Problem 23 | N/A ms | N/A ms |
Day 24 | Problem 24 | N/A ms | N/A ms |
Day 25 | Problem 25 | N/A ms | N/A ms |
The benchmarks are measured with the unstable bench feature of Rust using my Macbook Pro 13' mid 2019