🎄 Advent of Code 2025

December 12, 2025 · View on GitHub

license

ProblemSolutionExecution timeLines of codeFinished
Day 1Problem 1day01.rs21.391 µs + 2.7970 ms60✓
Day 2Problem 2day02.rs176.77 ms + 206.82 ms42✓
Day 3Problem 3day03.rs106.74 µs + 160.37 µs45✓
Day 4Problem 4day04.rs319.14 µs + 9.5692 ms38✓
Day 5Problem 5day05.rs57.490 µs + 47.808 µs60✓
Day 6Problem 6day06.rs107.38 µs + 115.66 µs87✓
Day 7Problem 7day07.rs110.86 µs + 80.175 µs45✓
Day 8Problem 8day08.rs32.984 ms + 59.031 ms80✓
Day 9Problem 9day09.rs218.52 µs + 307.47 ms160✓
Day 10Problem 10day10.rs235.69 ms + 266.41 ms86✓
Day 11Problem 11day11.rs188.19 µs + 185.73 µs49✓
Day 12Problem 12day12.rs194.77 µs + 382.47 ps67✓

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.

Install Rust

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

Usage

Clone

git clone https://github.com/MrRobb/advent-of-code-2025.git
cd advent-of-code-2025

Build

cargo build --release

Run

Run all

cargo run --release

Run a specific day

cargo run --release --bin day01

Benchmarks

Install Criterion

To run the benchmarks you need to install cargo-criterion first:

cargo install cargo-criterion

Run benchmarks

Once you have Criterion installed, you can run the benchmarks with:

cargo criterion