Skip to content

Commit 35d15fe

Browse files
author
Evgeni Gordeev
committed
2024 day 1
1 parent 9ed3ba0 commit 35d15fe

File tree

5 files changed

+1040
-1102
lines changed

5 files changed

+1040
-1102
lines changed

2024.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## 2024
22

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)
66
[![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)
77

88
* [https://adventofcode.com/2024](https://adventofcode.com/2024)
@@ -13,12 +13,19 @@ To profile with hyperfine - `brew install hyperfine`
1313
* ```find 2024 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \;```
1414
* ```python -m cProfile 2024/01.py```
1515
* ```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
1825

1926
| Day | Name | Solution | CI Benchmark |
2027
|-------------------------------------------|-----------------------------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
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) |
2229
| ----------------------------------------- | --------------------------------- | ------------------------- | --- |
2330
| [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) |
2431

0 commit comments

Comments
 (0)