Advent of Code in Rust - remmycat's solutions
Benchmarks on MacBook Pro (13-inch, 2019), 2.8 GHz Quad-Core Intel Core i7
(Day 15 and 19, yikes…)
Emojis reflect my feeling on the time and if it's improvable, based on intuition or other people's submissions.
Puzzle | TimeLower bound Estimate Upper bound |
|
---|---|---|
2021 – Day 01: Sonar Sweep | 82.352 μs 82.675 μs 83.038 μs |
|
2021 – Day 02: Dive! | 268.37 μs 276.63 μs 284.59 μs |
|
2021 – Day 03: Binary Diagnostic | 1.3363 ms 1.3556 ms 1.3754 ms |
|
2021 – Day 04: Giant Squid | 6.1415 ms 6.2460 ms 6.3639 ms |
|
2021 – Day 05: Hydrothermal Venture | 7.3454 ms 7.4697 ms 7.6179 ms |
|
2021 – Day 06: Lanternfish | 4.8964 μs 4.9216 μs 4.9488 μs |
|
2021 – Day 07: The Treachery of Whales | 3.2027 ms 3.2506 ms 3.2982 ms |
|
2021 – Day 08: Seven Segment Search | 1.1879 ms 1.1999 ms 1.2160 ms |
|
2021 – Day 09: Smoke Basin | 844.84 μs 847.79 μs 851.20 μs |
|
2021 – Day 10: Syntax Scoring | 93.844 μs 95.318 μs 97.024 μs |
|
2021 – Day 11: Dumbo Octopμs | 1.6699 ms 1.6921 ms 1.7142 ms |
|
2021 – Day 12: Passage Pathing | 43.313 μs 43.796 μs 44.341 μs |
|
2021 – Day 13: Transparent Origami | 151.52 μs 155.18 μs 159.21 μs |
|
2021 – Day 14: Extended Polymerization | 29.759 μs 30.141 μs 30.616 μs |
|
2021 – Day 15: Chiton | 1.8263 s 1.8867 s 1.9524 s |
|
2021 – Day 16: Packet Decoder | 35.102 μs 35.242 μs 35.401 μs |
|
2021 – Day 17: Trick Shot | 11.046 μs 11.143 μs 11.269 μs |
|
2021 – Day 18: Snailfish | 40.403 ms 40.808 ms 41.247 ms |
|
2021 – Day 19: Beacon Scanner | 4.4191 s 4.4864 s 4.5551 s |
|
2021 – Day 20: Trench Map | 10.085 ms 10.165 ms 10.252 ms |
|
2021 – Day 21: Dirac Dice | 4.0620 ms 4.1312 ms 4.2120 ms |
|