My Advent of Code 2023 solutions in Rust.
All implementations of puzzle solutions can be found inside ./src/days/
. The corresponding puzzle input can be found in ./src/input/
.
# Run all puzzles and print their solutions
cargo run
# Run specific puzzles day01a and day01b
cargo run day01a day01b
# Unit test all puzzles to see whether everything generates the correct answer
cargo test
# Unit test specific puzzles for day01
cargo test -- day01
# Benchmark all puzzles
cargo bench
# Benchmark specific puzzles for day01
cargo bench -- 2023/day01
All solutions are measured with benchmark_all.rs
, by 'warming up' for three seconds, and then collecting 100 samples for each benchmark. A violin plot comparison of all benchmarks is generated below. Not that these are measured very scientifically. I just like graphs.
This project is released under the GNU GPL-3.0 license. Check out the LICENSE file for more information.