https://github.com/tsatke/aoc2024
AoC 2024 in Rust. Focus is performance (again).
https://github.com/tsatke/aoc2024
Last synced: 2 months ago
JSON representation
AoC 2024 in Rust. Focus is performance (again).
- Host: GitHub
- URL: https://github.com/tsatke/aoc2024
- Owner: tsatke
- License: mit
- Created: 2024-12-03T19:34:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T19:49:20.000Z (6 months ago)
- Last Synced: 2024-12-03T20:32:01.979Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2024
Rust. Performance.
Rules:
* no input pre-processing
* portable rust (if you're reading this, you can probably execute it on your machine)
* measured with criterion (avg time)
* unstable features allowed## Benchmarks
Criterion, MacBook Air M2 2022.
| Day | Part 1 | Part 2 | Combined | Time |
|-----|--------|--------|----------|------------|
| 1 | 20µs | 14µs | - | **34µs** |
| 2 | 35µs | 61µs | - | **96µs** |
| 3 | 9µs | 13µs | - | **22µs** |
| 4 | 37µs | 17µs | - | **54µs** |
| 5 | 47µs | 72µs | - | **119µs** |
| 6 | 18µs | 6000µs | - | **6018µs** |
| 7 | 94µs | 205µs | - | **299µs** |
| 8 | 4µs | 5µs | - | **9µs** |
| 9 | 30µs | - | - | |