Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 873 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 873 Bytes

Advent of Code 2024

Repository storing my solutions for Advent of Code 2024. Solutions are in whatever language I feel like using that day - for this year I've done every day in both Python and Rust.

Running

Each day is stored in a separate Day XX/language/sol.ext file.

For python, you can run an individual day by running e.g. python3 'Day\ XX/Python/sol.py. All solutions can be run in one go using python3 all.py.

For Rust, you can run an individual day by running e.g. cargo run -- --day XX All solutions can be run in one go by running normally, e.g. cargo run.

Runtime

Timings on my system (i5-1135G7 @ 2.40GHz):

  • Python: 9.126 s (± 0.178 s) using hyperfine --warmup=5 'python3 all.py'
  • Rust: 411.7 ms (± 8.5 ms) using hyperfine --warmup=5 'cargo run --release'
    • With fat LTO and 1 codegen unit: 314.2 ms (± 5.9 ms)