https://github.com/evaleek/advent-of-code
Personal Advent of Code solutions
https://github.com/evaleek/advent-of-code
advent-of-code zig
Last synced: 16 days ago
JSON representation
Personal Advent of Code solutions
- Host: GitHub
- URL: https://github.com/evaleek/advent-of-code
- Owner: evaleek
- Created: 2025-12-01T14:49:07.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-12-11T21:07:55.000Z (6 months ago)
- Last Synced: 2026-06-08T02:34:00.668Z (16 days ago)
- Topics: advent-of-code, zig
- Language: Zig
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
My solutions to Advent of Code problems.
Note, if running these locally:
my solutions assume Unix newline encoding (lines delimited by a single `\n`)
and will most likely fail assertions or print the incorrect answer
for the Windows `CR LF` or old Mac `CR` styles.
# Benchmarks
Measured with 10,000 iterations on my Ryzen 9 5900X with Zig `ReleaseFast`.
The input is read and allocated from the file,
and I then repeatedly measure the runtime of the solution function on the allocated input
(so no IO time is included).
## 2025
| DD/P | Mean runtime ± standard deviation |
| ---- | --------------------------------- |
| 01/1 | 72.2 µs ± 1.0 µs |
| 01/2 | 83.8 µs ± 0.6 µs |
| 02/1 | 10.361 ms ± 0.140 ms |
| 02/2 | 7.708 ms ± 0.181 ms |
| 03/1 | 17.1 µs ± 0.5 µs |
| 03/2 | 0.138 ms ± 2.4 µs |
| 04/1 | 0.136 ms ± 1.2 µs |
| 04/2 | 0.580 ms ± 2.3 µs |
| 05/1 | 40.5 µs ± 0.6 µs |
| 05/2 | 11.6 µs ± 0.3 µs |
| 06/1 | 33.2 µs ± 0.5 µs |
| 06/2 | 26.2 µs ± 0.7 µs |
| 07/1 | 2.5 µs ± 0.2 µs |
| 07/2 | 9.8 µs ± 0.2 µs |
| 08/1 | 41.965 ms ± 1.071 ms |
| 08/2 | 54.385 ms ± 0.955 ms |
| 09/1 | 0.216 ms ± 1.7 µs |
| 09/2 | 14.733 ms ± 0.348 ms |