Home

Awesome

Advent of Code checks-badge docs-badge

Complete 2023 to 2015 entries written in Rust for the annual Advent of Code challenge, solving 450 stars in less than 1 second.

Features

Quickstart

<details> <summary>Show details</summary><p/>

Input

Place input files in input/yearYYYY/dayDD.txt including leading zeroes. For example:

Run

Test

Benchmark

Document

Miscellaneous

</details>

Performance

Benchmarks are measured using the built-in cargo bench tool run on an Apple M2 Max. All 225 solutions from 2023 to 2015 complete sequentially in 579 milliseconds. Interestingly 84% of the total time is spent on just 9 solutions. Performance is reasonable even on older hardware, for example a 2011 MacBook Pro with an Intel i7-2720QM processor takes 3.5 seconds to run the same 225 solutions.

pie-all

YearBenchmark (ms)
20236
20228
20219
2020272
201916
201835
201789
2016120
201524

2023

pie-2023

DayProblemSolutionBenchmark (μs)
1Trebuchet?!Source37
2Cube ConundrumSource9
3Gear RatiosSource53
4ScratchcardsSource20
5If You Give A Seed A FertilizerSource18
6Wait For ItSource1
7Camel CardsSource71
8Haunted WastelandSource34
9Mirage MaintenanceSource18
10Pipe MazeSource41
11Cosmic ExpansionSource12
12Hot SpringsSource440
13Point of IncidenceSource66
14Parabolic Reflector DishSource632
15Lens LibrarySource84
16The Floor Will Be LavaSource826
17Clumsy CrucibleSource2289
18Lavaduct LagoonSource17
19AplentySource100
20Pulse PropagationSource6
21Step CounterSource182
22Sand SlabsSource54
23A Long WalkSource640
24Never Tell Me The OddsSource95
25SnowverloadSource179

2022

pie-2022

DayProblemSolutionBenchmark (μs)
1Calorie CountingSource14
2Rock Paper ScissorsSource3
3Rucksack ReorganizationSource13
4Camp CleanupSource8
5Supply StacksSource14
6Tuning TroubleSource3
7No Space Left On DeviceSource14
8Treetop Tree HouseSource51
9Rope BridgeSource107
10Cathode-Ray TubeSource2
11Monkey in the MiddleSource1173
12Hill Climbing AlgorithmSource57
13Distress SignalSource15
14Regolith ReservoirSource205
15Beacon Exclusion ZoneSource2
16Proboscidea VolcaniumSource59
17Pyroclastic FlowSource71
18Boiling BouldersSource121
19Not Enough MineralsSource74
20Grove Positioning SystemSource3785
21Monkey MathSource64
22Monkey MapSource61
23Unstable DiffusionSource1521
24Blizzard BasinSource62
25Full of Hot AirSource3

2021

pie-2021

DayProblemSolutionBenchmark (μs)
1Sonar SweepSource6
2Dive!Source12
3Binary DiagnosticSource20
4Giant SquidSource12
5Hydrothermal VentureSource181
6LanternfishSource1
7The Treachery of WhalesSource8
8Seven Segment SearchSource14
9Smoke BasinSource64
10Syntax ScoringSource25
11Dumbo OctopusSource55
12Passage PathingSource25
13Transparent OrigamiSource22
14Extended PolymerizationSource11
15ChitonSource2403
16Packet DecoderSource6
17Trick ShotSource7
18SnailfishSource501
19Beacon ScannerSource615
20Trench MapSource2066
21Dirac DiceSource278
22Reactor RebootSource378
23AmphipodSource1714
24Arithmetic Logic UnitSource4
25Sea CucumberSource551

2020

pie-2020

DayProblemSolutionBenchmark (μs)
1Report RepairSource12
2Password PhilosophySource35
3Toboggan TrajectorySource12
4Passport ProcessingSource49
5Binary BoardingSource11
6Custom CustomsSource35
7Handy HaversacksSource69
8Handheld HaltingSource8
9Encoding ErrorSource9
10Adapter ArraySource1
11Seating SystemSource4537
12Rain RiskSource12
13Shuttle SearchSource1
14Docking DataSource83
15Rambunctious RecitationSource147000
16Ticket TranslationSource120
17Conway CubesSource443
18Operation OrderSource24
19Monster MessagesSource362
20Jurassic JigsawSource42
21Allergen AssessmentSource45
22Crab CombatSource5911
23Crab CupsSource110000
24Lobby LayoutSource4320
25Combo BreakerSource20

2019

pie-2019

DayProblemSolutionBenchmark (μs)
1The Tyranny of the Rocket EquationSource1
21202 Program AlarmSource1
3Crossed WiresSource17
4Secure ContainerSource12
5Sunny with a Chance of AsteroidsSource3
6Universal Orbit MapSource29
7Amplification CircuitSource79
8Space Image FormatSource4
9Sensor BoostSource1008
10Monitoring StationSource1092
11Space PoliceSource341
12The N-Body ProblemSource1309
13Care PackageSource2510
14Space StoichiometrySource17
15Oxygen SystemSource360
16Flawed Frequency TransmissionSource1956
17Set and ForgetSource338
18Many-Worlds InterpretationSource1157
19Tractor BeamSource688
20Donut MazeSource189
21Springdroid AdventureSource1785
22Slam ShuffleSource12
23Category SixSource670
24Planet of DiscordSource232
25CryostasisSource2047

2018

pie-2018

DayProblemSolutionBenchmark (μs)
1Chronal CalibrationSource16
2Inventory Management SystemSource78
3No Matter How You Slice ItSource55
4Repose RecordSource46
5Alchemical ReductionSource390
6Chronal CoordinatesSource41
7The Sum of Its PartsSource8
8Memory ManeuverSource24
9Marble ManiaSource909
10The Stars AlignSource11
11Chronal ChargeSource1404
12Subterranean SustainabilitySource77
13Mine Cart MadnessSource382
14Chocolate ChartsSource24000
15Beverage BanditsSource583
16Chronal ClassificationSource37
17Reservoir Research Source151
18Settlers of The North PoleSource384
19Go With The FlowSource1
20A Regular MapSource36
21Chronal ConversionSource66
22Mode MazeSource3396
23Experimental Emergency TeleportationSource506
24Immune System Simulator 20XXSource2056
25Four-Dimensional AdventureSource323

2017

pie-2017

DayProblemSolutionBenchmark (μs)
1Inverse CaptchaSource1
2Corruption ChecksumSource2
3Spiral MemorySource2
4High-Entropy PassphrasesSource98
5A Maze of Twisty Trampolines, All AlikeSource22000
6Memory ReallocationSource81
7Recursive CircusSource93
8I Heard You Like RegistersSource47
9Stream ProcessingSource23
10Knot HashSource66
11Hex EdSource18
12Digital PlumberSource61
13Packet ScannersSource1
14Disk DefragmentationSource438
15Dueling GeneratorsSource26000
16Permutation PromenadeSource68
17SpinlockSource85
18DuetSource7
19A Series of TubesSource19
20Particle SwarmSource245
21Fractal ArtSource5
22Sporifica VirusSource36000
23Coprocessor ConflagrationSource55
24Electromagnetic MoatSource275
25The Halting ProblemSource3698

2016

pie-2016

DayProblemSolutionBenchmark (μs)
1No Time for a TaxicabSource3
2Bathroom SecuritySource29
3Squares With Three SidesSource24
4Security Through ObscuritySource79
5How About a Nice Game of Chess?Source37000
6Signals and NoiseSource4
7Internet Protocol Version 7Source364
8Two-Factor AuthenticationSource9
9Explosives in CyberspaceSource6
10Balance BotsSource16
11Radioisotope Thermoelectric GeneratorsSource719
12Leonardo's MonorailSource1
13A Maze of Twisty Little CubiclesSource3
14One-Time PadSource77000
15Timing is EverythingSource1
16Dragon ChecksumSource1
17Two Steps ForwardSource3858
18Like a RogueSource728
19An Elephant Named JosephSource1
20Firewall RulesSource21
21Scrambled Letters and HashSource10
22Grid ComputingSource28
23Safe CrackingSource1
24Air Duct SpelunkingSource337
25Clock SignalSource1

2015

pie-2015

DayProblemSolutionBenchmark (μs)
1Not Quite LispSource2
2I Was Told There Would Be No MathSource8
3Perfectly Spherical Houses in a VacuumSource95
4The Ideal Stocking StufferSource14000
5Doesn't He Have Intern-Elves For This?Source38
6Probably a Fire HazardSource6572
7Some Assembly RequiredSource27
8MatchsticksSource12
9All in a Single NightSource34
10Elves Look, Elves SaySource15
11Corporate PolicySource1
12JSAbacusFramework.ioSource83
13Knights of the Dinner TableSource37
14Reindeer OlympicsSource28
15Science for Hungry PeopleSource53
16Aunt SueSource20
17No Such Thing as Too MuchSource45
18Like a GIF For Your YardSource154
19Medicine for RudolphSource187
20Infinite Elves and Infinite HousesSource1667
21RPG Simulator 20XXSource2
22Wizard Simulator 20XXSource235
23Opening the Turing LockSource6
24It Hangs in the BalanceSource380
25Let It SnowSource1