11# Advent of Code [ ![ checks-badge]] [ checks-link ] [ ![ docs-badge]] [ docs-link ]
22
3- Complete 2023 to 2019 and 2017 to 2015 entries for the annual [ Advent of Code] challenge,
4- written in performant Rust.
3+ Complete 2023 to 2015 entries for the annual [ Advent of Code] challenge, written in performant Rust.
54
65## Features
76
@@ -54,10 +53,10 @@ Place input files in `input/yearYYYY/dayDD.txt` including leading zeroes. For ex
5453## Performance
5554
5655Benchmarks are measured using the built-in ` cargo bench ` tool run on an [ Apple M2 Max] [ apple-link ] .
57- All 200 solutions from 2023 to 2019 and also 2017 to 2015 complete sequentially in ** 1.6 seconds** .
58- Interestingly 93% of the total time is spent on just 8 solutions.
56+ All 225 solutions from 2023 to to 2015 complete sequentially in ** 1.7 seconds** .
57+ Interestingly 93% of the total time is spent on just 9 solutions.
5958Performance is reasonable even on older hardware, for example a 2011 MacBook Pro with an
60- [ Intel i7-2720QM] [ intel-link ] processor takes 4.8 seconds to run the same 200 solutions.
59+ [ Intel i7-2720QM] [ intel-link ] processor takes 4.9 seconds to run the same 225 solutions.
6160
6261![ pie-all]
6362
@@ -68,7 +67,7 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
6867| [ 2021] ( #2021 ) | 10 |
6968| [ 2020] ( #2020 ) | 286 |
7069| [ 2019] ( #2019 ) | 22 |
71- | [ 2018] ( #2018 ) | in progress |
70+ | [ 2018] ( #2018 ) | 36 |
7271| [ 2017] ( #2017 ) | 515 |
7372| [ 2016] ( #2016 ) | 663 |
7473| [ 2015] ( #2015 ) | 87 |
@@ -235,6 +234,8 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
235234
236235## 2018
237236
237+ ![ pie-2018]
238+
238239| Day | Problem | Solution | Benchmark (μs) |
239240| --- | --- | --- | --: |
240241| 1 | [ Chronal Calibration] ( https://adventofcode.com/2018/day/1 ) | [ Source] ( src/year2018/day01.rs ) | 15 |
@@ -372,6 +373,7 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
372373[ pie-2021 ] : docs/pie-2021.svg
373374[ pie-2020 ] : docs/pie-2020.svg
374375[ pie-2019 ] : docs/pie-2019.svg
376+ [ pie-2018 ] : docs/pie-2018.svg
375377[ pie-2017 ] : docs/pie-2017.svg
376378[ pie-2016 ] : docs/pie-2016.svg
377379[ pie-2015 ] : docs/pie-2015.svg
0 commit comments