AndrejOrsula / aoc

Advent of Code (2023 — Rust)

Home Page:https://adventofcode.com/2023

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code

Rust Docker deps.rs codecov.io

My solutions to Advent of Code puzzles.

Edition

All benchmarks are run on a Dell Precision 5550 laptop with an Intel Core i7-10875H CPU.

DayPart 1 PerformancePart 2 Performance
D Puzzle Code
1 Trebuchet?! day1.rs
2 Cube Conundrum day2.rs
3 Gear Ratios day3.rs
4 Scratchcards day4.rs
5 If You Give A Seed ... day5.rs
6 Wait For It day6.rs
7 Camel Cards day7.rs
8 Haunted Wasteland day8.rs
9 Mirage Maintenance day9.rs
10 Pipe Maze day10.rs
11 Cosmic Expansion day11.rs
12 Hot Springs day12.rs
13 Point of Incidence day13.rs
14 Parabolic Reflector ... day14.rs
15 Lens Library day15.rs
16 The Floor Will Be ... day16.rs
17 Clumsy Crucible day17.rs
18 Lavaduct Lagoon day18.rs
19 Aplenty day19.rs
20 Pulse Propagation day20.rs
21 Step Counter day21.rs
22 Sand Slabs day22.rs
23 A Long Walk day23.rs
24 Never Tell Me The ... day24.rs
25 Snowverload day25.rs
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

Rust

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

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.

About

Advent of Code (2023 — Rust)

https://adventofcode.com/2023

License:Apache License 2.0


Languages

Language:Rust 86.7%Language:Shell 12.9%Language:Dockerfile 0.4%