Skip to content

Commit

Permalink
2024 day 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeni Gordeev committed Dec 1, 2024
1 parent 9ed3ba0 commit 35d15fe
Show file tree
Hide file tree
Showing 5 changed files with 1,040 additions and 1,102 deletions.
19 changes: 13 additions & 6 deletions 2024.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## 2024

![](https://img.shields.io/badge/stars%20⭐-0-yellow)
![](https://img.shields.io/badge/days%20completed-0-red)
![](https://img.shields.io/badge/day%20📅-0-blue)
![](https://img.shields.io/badge/stars%20⭐-2-yellow)
![](https://img.shields.io/badge/days%20completed-1-red)
![](https://img.shields.io/badge/day%20📅-1-blue)
[![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)

* [https://adventofcode.com/2024](https://adventofcode.com/2024)
Expand All @@ -13,12 +13,19 @@ To profile with hyperfine - `brew install hyperfine`
* ```find 2024 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \;```
* ```python -m cProfile 2024/01.py```
* ```time python 2024/01.py```
* ```hyperfine --warmup 3 -r 10 'find 2024 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2024/benchmark-m1.txt```
* ```bin/run-all-solutions.py --dir 2024 --write```

## pre-commit

```shell
bin/run-all-solutions.py --dir 2024 --write
hyperfine --warmup 3 -r 10 'find 2024 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2024/benchmark-m1.txt
```

## results

| Day | Name | Solution | CI Benchmark |
|-------------------------------------------|-----------------------------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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) |
| [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) |
| ----------------------------------------- | --------------------------------- | ------------------------- | --- |
| [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) |

Expand Down
Loading

0 comments on commit 35d15fe

Please sign in to comment.