1
1
## 2024
2
2
3
- ![ ] ( https://img.shields.io/badge/stars%20⭐-0 -yellow )
4
- ![ ] ( https://img.shields.io/badge/days%20completed-0 -red )
5
- ![ ] ( https://img.shields.io/badge/day%20📅-0 -blue )
3
+ ![ ] ( https://img.shields.io/badge/stars%20⭐-2 -yellow )
4
+ ![ ] ( https://img.shields.io/badge/days%20completed-1 -red )
5
+ ![ ] ( https://img.shields.io/badge/day%20📅-1 -blue )
6
6
[ ![ badge] ( https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2024-all-ci.json )] ( https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2024.yaml )
7
7
8
8
* [ https://adventofcode.com/2024 ] ( https://adventofcode.com/2024 )
@@ -13,12 +13,19 @@ To profile with hyperfine - `brew install hyperfine`
13
13
* ``` find 2024 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \; ```
14
14
* ``` python -m cProfile 2024/01.py ```
15
15
* ``` time python 2024/01.py ```
16
- * ``` hyperfine --warmup 3 -r 10 'find 2024 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2024/benchmark-m1.txt ```
17
- * ``` bin/run-all-solutions.py --dir 2024 --write ```
16
+
17
+ ## pre-commit
18
+
19
+ ``` shell
20
+ bin/run-all-solutions.py --dir 2024 --write
21
+ hyperfine --warmup 3 -r 10 ' find 2024 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2024/benchmark-m1.txt
22
+ ```
23
+
24
+ ## results
18
25
19
26
| Day | Name | Solution | CI Benchmark |
20
27
| -------------------------------------------| -----------------------------------| ---------------------------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
21
- | [ 01] ( https://adventofcode.com/2024/day/1 ) | Trebuchet | [ py] ( 2024/01.py ) | [ ![ badge] ( https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2024-01-ci.json )] ( https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2024.yaml ) |
28
+ | [ 01] ( https://adventofcode.com/2024/day/1 ) | Historian Hysteria | [ py] ( 2024/01.py ) | [ ![ badge] ( https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2024-01-ci.json )] ( https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2024.yaml ) |
22
29
| ----------------------------------------- | --------------------------------- | ------------------------- | --- |
23
30
| [ all] ( https://adventofcode.com/2024 ) | AoC 24 | [ txt] ( 2024/answers.txt ) | [ ![ badge] ( https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2024-all-ci.json )] ( https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2024.yaml ) |
24
31
0 commit comments