Awesome
Advent of Code
<p align="left"> <a href="https://github.com/AndrejOrsula/aoc/actions/workflows/rust.yml"> <img alt="Rust" src="https://github.com/AndrejOrsula/aoc/actions/workflows/rust.yml/badge.svg"></a> <a href="https://github.com/AndrejOrsula/aoc/actions/workflows/docker.yml"> <img alt="Docker" src="https://github.com/AndrejOrsula/aoc/actions/workflows/docker.yml/badge.svg"></a> <a href="https://deps.rs/repo/github/AndrejOrsula/aoc"> <img alt="deps.rs" src="https://deps.rs/repo/github/AndrejOrsula/aoc/status.svg"></a> <a href="https://codecov.io/gh/AndrejOrsula/aoc"> <img alt="codecov.io" src="https://codecov.io/gh/AndrejOrsula/aoc/branch/main/graph/badge.svg"></a> </p>My solutions to Advent of Code puzzles.
Edition
Advent of Code 2023
<table> <tr><th>Day</th><th>Part 1 Performance</th><th>Part 2 Performance</th></tr> <tr><td>All benchmarks are run on a Dell Precision 5550 laptop with an Intel Core i7-10875H CPU.
Generator | Runner |
---|---|
4.408 µs | 80.30 µs |
112.7 µs | 1.056 µs |
5.884 µs | 508.0 µs |
92.21 µs | 27.78 µs |
21.77 µs | 5.197 µs |
16.90 µs | 0.248 µs |
170.1 µs | 76.89 µs |
181.6 µs | 323.7 µs |
165.9 µs | 38.10 µs |
159.7 µs | 183.6 µs |
7.197 ms | 1.085 ms |
276.1 µs | 477.4 µs |
58.49 µs | 359.9 µs |
87.00 µs | 61.28 µs |
195.8 µs | 24.98 µs |
33.91 µs | 622.1 µs |
50.64 µs | 78.82 ms |
30.70 µs | 1.981 µs |
228.0 µs | 31.74 µs |
33.73 µs | 4.654 ms |
498.8 µs | 6.057 ms |
254.8 µs | 41.48 ms |
101.8 µs | 2.554 ms |
100.3 µs | 1.486 ms |
320.8 µs | 245.7 ms |
Generator | Runner |
---|---|
0.558 µs | 930.2 µs |
126.6 µs | 1.347 µs |
0.462 µs | 437.1 µs |
113.4 µs | 27.97 µs |
17.87 µs | 108.7 µs |
0.666 µs | 0.659 µs |
177.0 µs | 66.30 µs |
153.8 µs | 1.069 ms |
119.2 µs | 45.94 µs |
163.3 µs | 222.8 µs |
7.172 ms | 1.080 ms |
247.1 µs | 8.984 ms |
10.10 µs | 192.8 µs |
72.12 µs | 38.33 ms |
161.4 µs | 128.9 µs |
32.84 µs | 20.16 ms |
29.74 µs | 289.0 ms |
43.98 µs | 1.778 µs |
213.9 µs | 69.56 µs |
32.87 µs | 21.57 ms |
491.3 µs | 86.90 ms |
252.4 µs | 61.18 ms |
101.2 µs | 2.5839 s |
79.73 µs | 2.4001 s |
0.000 µs | 0.000 µs |
Instructions
<a href="#-rust"><img src="https://rustacean.net/assets/rustacean-flat-noshadow.svg" width="16" height="16"></a> Rust
<a href="#-test-the-correctness-of-solutions"><img src="https://www.svgrepo.com/show/271355/rocket-ship-rocket.svg" width="14" height="14"></a> Get Answers and Run Performance Benchmarks
Thanks to cargo-aoc
, answers and performance benchmarks for all days are obtainable by running the main binary.
cargo run --release
<a href="#-test-the-correctness-of-solutions"><img src="https://www.svgrepo.com/show/269868/lab.svg" width="14" height="14"></a> Test the Correctness of Solutions
All days also include tests using sample inputs from the puzzle descriptions.
cargo test
License
This project is dual-licensed to be compatible with the Rust project, under either the MIT or Apache 2.0 licenses.