Problem | Solution | Execution time | Lines of code | Finished | |
---|---|---|---|---|---|
Day 1 | Problem 1 | day01.rs | 61.209 µs + 463.01 µs | 37 | ✓ |
Day 2 | Problem 2 | day02.rs | 95.278 µs + 92.764 µs | 46 | ✓ |
Day 3 | Problem 3 | day03.rs | 598.86 µs + 541.84 µs | 51 | ✓ |
Day 4 | Problem 4 | day04.rs | 337.20 µs + 326.75 µs | 48 | ✓ |
Day 5 | Problem 5 | day05.rs | 61.339 µs + 113.32 µs | 92 | ✓ |
Day 6 | Problem 6 | day06.rs | 537.83 ns + 5.8270 ms | 34 | ✓ |
Day 7 | Problem 7 | day07.rs | 2.9551 ms + 2.8716 ms | 155 | ✓ |
Day 8 | Problem 8 | day08.rs | 1.9298 ms + 10.211 ms | 72 | ✓ |
Day 9 | Problem 9 | day09.rs | 572.13 µs + 565.22 µs | 49 | ✓ |
Day 10 | Problem 10 | day10.rs | 637.60 µs + 3.2216 ms | 145 | ✓ |
Day 11 | Problem 11 | day11.rs | 134.43 µs + 124.47 µs | 50 | ✓ |
The benchmarks are measured (non-scientifically) with cargo-criterion on a AMD Ryzen 5 3600 Desktop. More in the benchmarks section. The lines of code are measured using ghloc, excluding comments and empty lines.
If you don't have Rust installed (how dare you) just run this:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
If you are not using a Unix-like OS, check the instructions here
git clone https://github.com/MrRobb/advent-of-code-2023.git
cd advent-of-code-2023
cargo build --release
cargo run --release
cargo run --release --bin day01
To run the benchmarks you need to install cargo-criterion first:
cargo install cargo-criterion
Once you have Criterion installed, you can run the benchmarks with:
cargo criterion