Skip to content

Repository files navigation

Advent Of Code 2024 in Rust

MIT License

My solutions to the Advent of Code 2024 challenges written in Rust.

Each day has a folder with the solutions for that day.

Benchmarking

Benchmarked on a Victus with 20 × 12th Gen Intel® Core™ i7-12700H and 32 GB of RAM.
Bench marking is done by iterating the released rust binary 100 times, removing outliers, and getting the sorted median.

The code for benchmarking is in benchmark.py. Saves the results and execution times as bar-graph and box-plot.
Results - results.txt Bar Graph - executionTimesBar.png
Box Plot - executionTimesBox.png.

Part 1 Part 2
Day 1 81.541µs 69.906µs
Day 2 136.327µs 183.412µs
Day 3 201.526µs 4.412ms
Day 4 365.498µs 107.420µs
Day 5 3.748ms 7.403ms
Day 6 74.768µs 10.974ms
Day 7 918.669µs 3.324ms
Day 8 33.014µs 53.580µs
Day 9 74.464µs (⬇ 86.97%) 22.327µs (⬇ 99.82%)
Day 10 864.687µs 552.174µs
Day 11 385.989µs 5.571ms
Day 12 1.232ms 1.688ms
Day 13 174.226µs 332.396µs
Day 14 2.360µs (⬇ 98.73%) 3.212µs (⬇ 99.98%)
Day 15 243.289µs 364.136µs
Day 16 564.812µs 5.921ms
Day 17 3.950µs 16.535µs
Day 18 1.812ms 8.533ms
Day 19 1.025ms 1.228ms
Day 20 659.363µs 4.657ms
Day 21 5.279µs 42.184µs
Day 22 346.340µs 9.196ms
Day 23 1.464ms 1.091ms
Day 24 50.569µs 127.661µs
Day 25 346.784µs 0.000ns
Total (80.687ms) 14.814ms 65.873ms

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Advent of Code solutions for 2024 in Rust. My first Rust project

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages