Skip to content

Commit 5ec1bea

Browse files
Merge pull request #22 from marcelblijleven/docs/add-readme-tables
Docs/add readme tables
2 parents 7410f60 + eb2577f commit 5ec1bea

File tree

14 files changed

+694
-89
lines changed

14 files changed

+694
-89
lines changed

README.md

Lines changed: 217 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,228 @@ Collection of my Advent of Code solutions in an overkill project setup 👻🎄.
2323
<!-- start completed section -->
2424
## Completed ⭐️
2525
### 2015
26-
- day 01: part one ⭐️, part two ⭐️
27-
- day 02: part one ⭐️, part two ⭐️
28-
- day 03: part one ⭐️, part two ⭐️
29-
- day 04: part one ⭐️, part two ⭐️
30-
- day 05: part one ⭐️, part two ⭐️
31-
- day 06: part one ⭐️, part two ⭐️
32-
- day 07: part one ⭐️, part two ⭐️
33-
- day 08: part one ⭐️, part two ⭐️
34-
- day 09: part one ⭐️, part two ⭐️
35-
- day 10: part one ⭐️, part two ⭐️
36-
- day 11: part one ⭐️, part two ⭐️
37-
- day 12: part one ⭐️, part two ⭐️
38-
- day 13: part one ⭐️, part two ⭐️
39-
- day 14: part one ⭐️, part two ⭐️
40-
- day 15: part one ⭐️, part two ⭐️
41-
- day 16: part one ⭐️, part two ⭐️
42-
- day 17: part one ⭐️, part two ⭐️
43-
- day 18: part one ⭐️, part two ⭐️
44-
- day 19: part one ⭐️, part two ⭐️
45-
- day 20: part one ⭐️, part two ⭐️
46-
- day 21: part one ⭐️, part two ⭐️
47-
- day 22: part one ⭐️, part two ⭐️
48-
- day 23: part one ⭐️, part two ⭐️
49-
- day 24: part one ⭐️, part two ⭐️
50-
- day 25: part one ⭐️, part two ⭐️
26+
<details><summary>Solutions overview of 2015</summary>
27+
<p>
28+
29+
| day | part one | part two |
30+
| :---: | :------: | :------: |
31+
| 01 | ⭐️ | ⭐️ |
32+
| 02 | ⭐️ | ⭐️ |
33+
| 03 | ⭐️ | ⭐️ |
34+
| 04 | ⭐️ | ⭐️ |
35+
| 05 | ⭐️ | ⭐️ |
36+
| 06 | ⭐️ | ⭐️ |
37+
| 07 | ⭐️ | ⭐️ |
38+
| 08 | ⭐️ | ⭐️ |
39+
| 09 | ⭐️ | ⭐️ |
40+
| 10 | ⭐️ | ⭐️ |
41+
| 11 | ⭐️ | ⭐️ |
42+
| 12 | ⭐️ | ⭐️ |
43+
| 13 | ⭐️ | ⭐️ |
44+
| 14 | ⭐️ | ⭐️ |
45+
| 15 | ⭐️ | ⭐️ |
46+
| 16 | ⭐️ | ⭐️ |
47+
| 17 | ⭐️ | ⭐️ |
48+
| 18 | ⭐️ | ⭐️ |
49+
| 19 | ⭐️ | ⭐️ |
50+
| 20 | ⭐️ | ⭐️ |
51+
| 21 | ⭐️ | ⭐️ |
52+
| 22 | ⭐️ | ⭐️ |
53+
| 23 | ⭐️ | ⭐️ |
54+
| 24 | ⭐️ | ⭐️ |
55+
| 25 | ⭐️ | ⭐️ |
56+
57+
</p>
58+
</details>
59+
5160
### 2020
52-
- day 01: part one ⭐️, part two ⭐️
53-
- day 02: part one ⭐️, part two ⭐️
54-
- day 03: part one ⭐️, part two ⭐️
55-
- day 04: part one ⭐️, part two ⭐️
56-
- day 05: part one ⭐️, part two ⭐️
57-
- day 06: part one ⭐️, part two ⭐️
58-
- day 07: part one ⭐️, part two ⭐️
59-
- day 08: part one ⭐️, part two ⭐️
60-
- day 09: part one ⭐️, part two ⭐️
61-
- day 10: part one ⭐️, part two ⭐️
62-
- day 11: part one ⭐️, part two ⭐️
63-
- day 12: part one ⭐️, part two ⭐️
64-
- day 13: part one ⭐️, part two ⭐️
65-
- day 14: part one ⭐️, part two ⭐️
66-
- day 15: part one ⭐️, part two ⭐️
61+
<details><summary>Solutions overview of 2020</summary>
62+
<p>
63+
64+
| day | part one | part two |
65+
| :---: | :------: | :------: |
66+
| 01 | ⭐️ | ⭐️ |
67+
| 02 | ⭐️ | ⭐️ |
68+
| 03 | ⭐️ | ⭐️ |
69+
| 04 | ⭐️ | ⭐️ |
70+
| 05 | ⭐️ | ⭐️ |
71+
| 06 | ⭐️ | ⭐️ |
72+
| 07 | ⭐️ | ⭐️ |
73+
| 08 | ⭐️ | ⭐️ |
74+
| 09 | ⭐️ | ⭐️ |
75+
| 10 | ⭐️ | ⭐️ |
76+
| 11 | ⭐️ | ⭐️ |
77+
| 12 | ⭐️ | ⭐️ |
78+
| 13 | ⭐️ | ⭐️ |
79+
| 14 | ⭐️ | ⭐️ |
80+
| 15 | ⭐️ | ⭐️ |
81+
| 16 | ⭐️ | ⭐️ |
82+
83+
</p>
84+
</details>
85+
6786
### 2021
68-
- day 01: part one ⭐️, part two ⭐️
69-
- day 02: part one ⭐️, part two ⭐️
70-
- day 03: part one ⭐️, part two ⭐️
71-
- day 04: part one ⭐️, part two ⭐️
72-
- day 05: part one ⭐️, part two ⭐️
73-
- day 06: part one ⭐️, part two ⭐️
74-
- day 07: part one ⭐️, part two ⭐️
75-
- day 08: part one ⭐️, part two ⭐️
76-
- day 09: part one ⭐️, part two ⭐️
77-
- day 10: part one ⭐️, part two ⭐️
87+
<details><summary>Solutions overview of 2021</summary>
88+
<p>
89+
90+
| day | part one | part two |
91+
| :---: | :------: | :------: |
92+
| 01 | ⭐️ | ⭐️ |
93+
| 02 | ⭐️ | ⭐️ |
94+
| 03 | ⭐️ | ⭐️ |
95+
| 04 | ⭐️ | ⭐️ |
96+
| 05 | ⭐️ | ⭐️ |
97+
| 06 | ⭐️ | ⭐️ |
98+
| 07 | ⭐️ | ⭐️ |
99+
| 08 | ⭐️ | ⭐️ |
100+
| 09 | ⭐️ | ⭐️ |
101+
| 10 | ⭐️ | ⭐️ |
102+
103+
</p>
104+
</details>
105+
78106

79107
<!-- end completed section -->
80108

109+
<!-- start benchmark section -->
110+
## Benchmarks 🚀
111+
### 2015
112+
<details><summary>Benchmarks for 2015</summary>
113+
<p>
114+
115+
| day | part | duration |
116+
| :---: | :---: | -------: |
117+
| 01 | part one | 0.87 ms |
118+
| 01 | part two | 0.37 ms |
119+
| 02 | part one | 4.46 ms |
120+
| 02 | part two | 4.15 ms |
121+
| 03 | part one | 6.75 ms |
122+
| 03 | part two | 8.82 ms |
123+
| 04 | part one | 333.73 ms |
124+
| 04 | part two | 8140.10 ms |
125+
| 05 | part one | 4.01 ms |
126+
| 05 | part two | 5.82 ms |
127+
| 06 | part one | 12203.14 ms |
128+
| 06 | part two | 9126.94 ms |
129+
| 07 | part one | 3.67 ms |
130+
| 07 | part two | 7.33 ms |
131+
| 08 | part one | 2.55 ms |
132+
| 08 | part two | 0.97 ms |
133+
| 09 | part one | 294.32 ms |
134+
| 09 | part two | 306.38 ms |
135+
| 10 | part one | 963.03 ms |
136+
| 10 | part two | 9617.11 ms |
137+
| 11 | part one | 0.02 ms |
138+
| 11 | part two | 0.01 ms |
139+
| 12 | part one | 2.84 ms |
140+
| 12 | part two | 2.29 ms |
141+
| 13 | part one | 332.69 ms |
142+
| 13 | part two | 2907.43 ms |
143+
| 14 | part one | 57.30 ms |
144+
| 14 | part two | 68.64 ms |
145+
| 15 | part one | 2137.44 ms |
146+
| 15 | part two | 754.40 ms |
147+
| 16 | part one | 2.65 ms |
148+
| 16 | part two | 2.67 ms |
149+
| 17 | part one | 507.51 ms |
150+
| 17 | part two | 285.50 ms |
151+
| 18 | part one | 7436.95 ms |
152+
| 18 | part two | 5324.89 ms |
153+
| 19 | part one | 8.57 ms |
154+
| 19 | part two | 0.38 ms |
155+
| 20 | part one | 7938.11 ms |
156+
| 20 | part two | 2262.16 ms |
157+
| 21 | part one | 15.81 ms |
158+
| 21 | part two | 14.73 ms |
159+
| 22 | part one | 653.37 ms |
160+
| 22 | part two | 441.59 ms |
161+
| 23 | part one | 2.05 ms |
162+
| 23 | part two | 2.71 ms |
163+
| 24 | part one | 217.20 ms |
164+
| 24 | part two | 10.32 ms |
165+
| 25 | part one | 6792.81 ms |
166+
| 25 | part two | 0.00 ms |
167+
168+
</p>
169+
</details>
170+
171+
### 2020
172+
<details><summary>Benchmarks for 2020</summary>
173+
<p>
174+
175+
| day | part | duration |
176+
| :---: | :---: | -------: |
177+
| 01 | part one | 0.31 ms |
178+
| 01 | part two | 265.49 ms |
179+
| 02 | part one | 8.78 ms |
180+
| 02 | part two | 8.86 ms |
181+
| 03 | part one | 0.31 ms |
182+
| 03 | part two | 1.07 ms |
183+
| 05 | part one | 26.12 ms |
184+
| 05 | part two | 8.17 ms |
185+
| 05 | part one binary version | 1.65 ms |
186+
| 06 | part one | 2.51 ms |
187+
| 06 | part two | 3.09 ms |
188+
| 07 | part one | 209.15 ms |
189+
| 07 | part two | 2.58 ms |
190+
| 08 | part one | 1.12 ms |
191+
| 08 | part two | 68.21 ms |
192+
| 09 | part one | 2.22 ms |
193+
| 09 | part two | 1433.78 ms |
194+
| 10 | part one | 0.08 ms |
195+
| 10 | part two | 0.13 ms |
196+
| 11 | part one | 4829.47 ms |
197+
| 11 | part two | 4330.25 ms |
198+
| 12 | part one | 0.97 ms |
199+
| 12 | part two | 1.12 ms |
200+
| 13 | part one | 0.56 ms |
201+
| 13 | part two | 0.25 ms |
202+
| 14 | part one | 5.48 ms |
203+
| 14 | part two | 572.31 ms |
204+
| 15 | part one | 0.64 ms |
205+
| 15 | part two | 8811.56 ms |
206+
| 16 | part one | 5.49 ms |
207+
| 16 | part two | 0.01 ms |
208+
209+
</p>
210+
</details>
211+
212+
### 2021
213+
<details><summary>Benchmarks for 2021</summary>
214+
<p>
215+
216+
| day | part | duration |
217+
| :---: | :---: | -------: |
218+
| 01 | part one | 0.78 ms |
219+
| 01 | part two | 3.29 ms |
220+
| 01 | part two reuse part one | 2.35 ms |
221+
| 02 | part one | 1.54 ms |
222+
| 02 | part two | 1.51 ms |
223+
| 03 | part one | 2.63 ms |
224+
| 03 | part two | 7.89 ms |
225+
| 04 | part one | 21.67 ms |
226+
| 04 | part two | 34.83 ms |
227+
| 05 | part one | 73.54 ms |
228+
| 05 | part two | 118.77 ms |
229+
| 06 | part one | 0.11 ms |
230+
| 06 | part two | 0.22 ms |
231+
| 06 | part two faster | 0.25 ms |
232+
| 07 | part one | 0.43 ms |
233+
| 07 | part two | 0.81 ms |
234+
| 08 | part one | 0.65 ms |
235+
| 08 | part two | 3.40 ms |
236+
| 09 | part one | 14.88 ms |
237+
| 09 | part two | 20.69 ms |
238+
| 09 | part two async | 26.22 ms |
239+
| 09 | part two mp | 201.47 ms |
240+
| 10 | part one | 2.74 ms |
241+
| 10 | part two | 6.54 ms |
242+
243+
</p>
244+
</details>
245+
246+
<!-- end benchmark section -->
247+
81248
## Decorators
82249
What's Christmas without decorations? 🎄
83250

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ zip_safe = no
2525
[options.entry_points]
2626
console_scripts =
2727
generate-readme = adventofcode.scripts.generate_readme:generate_readme
28+
generate-benchmarks = adventofcode.scripts.benchmarks:generate_benchmarks
2829
run-all = adventofcode.scripts.runner:run_all
2930
add-day = adventofcode.scripts.add_day:add_day
3031
clean-repo = adventofcode.scripts.clean_repo:clean_repo
3132

33+
3234
[options.extras_require]
3335
testing =
3436
pytest>=6.0

src/adventofcode/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
55
RUNNING_ALL = False
6+
RUNNING_BENCHMARKS = False

0 commit comments

Comments
 (0)