Skip to content

Commit

Permalink
redo benchmark badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeni Gordeev committed Dec 7, 2023
1 parent 0b0925f commit f8fa115
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 39 deletions.
36 changes: 19 additions & 17 deletions 2021.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![](https://img.shields.io/badge/stars%20⭐-30-yellow)
![](https://img.shields.io/badge/days%20completed-15-red)
![](https://img.shields.io/badge/day%20📅-25-blue)
[![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml)
[![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml)

* https://adventofcode.com/2021

Expand All @@ -12,31 +12,33 @@ To profile with hyperfine - ```brew install hyperfine```
* ```hyperfine -r 10 '2021/01.py'```
* ```python -m cProfile 2021/01.py```
* ```time python 2021/01.py```
* ```hyperfine --warmup 3 -r 10 'find 2021 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2021/benchmark-m1.txt```
* ```bin/run-all-solutions.py --dir 2021 --write```

| Day | Name | Solution | CI Benchmark |
|--------------------------------------------|-------------------------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [01](https://adventofcode.com/2021/day/1) | Sonar Sweep | [py](2021/01.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-01.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [02](https://adventofcode.com/2021/day/2) | Dive | [py](2021/02.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-02.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [03](https://adventofcode.com/2021/day/3) | Binary Diagnostic | [py](2021/03.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-03.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [04](https://adventofcode.com/2021/day/4) | Giant Squid | [py](2021/04.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-04.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [05](https://adventofcode.com/2021/day/5) | Hydrothermal Venture | [py](2021/05.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-05.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [06](https://adventofcode.com/2021/day/6) | Lanternfish | [py](2021/06.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-06.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [07](https://adventofcode.com/2021/day/7) | The Treachery of Whales | [py](2021/07.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-07.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [08](https://adventofcode.com/2021/day/8) | Seven Segment Search | [py](2021/08.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-08.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [09](https://adventofcode.com/2021/day/9) | Smoke Basin | [py](2021/09.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-09.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [10](https://adventofcode.com/2021/day/10) | Syntax Scoring | [py](2021/10.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-10.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [11](https://adventofcode.com/2021/day/11) | Dumbo Octopus | [py](2021/11.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-11.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [12](https://adventofcode.com/2021/day/12) | Passage Pathing | [py](2021/12.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-12.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [13](https://adventofcode.com/2021/day/13) | Transparent Origami | [py](2021/13.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-13.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [14](https://adventofcode.com/2021/day/14) | Extended Polymerization | [py](2021/14.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-14.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [01](https://adventofcode.com/2021/day/1) | Sonar Sweep | [py](2021/01.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-01-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [02](https://adventofcode.com/2021/day/2) | Dive | [py](2021/02.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-02-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [03](https://adventofcode.com/2021/day/3) | Binary Diagnostic | [py](2021/03.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-03-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [04](https://adventofcode.com/2021/day/4) | Giant Squid | [py](2021/04.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-04-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [05](https://adventofcode.com/2021/day/5) | Hydrothermal Venture | [py](2021/05.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-05-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [06](https://adventofcode.com/2021/day/6) | Lanternfish | [py](2021/06.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-06-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [07](https://adventofcode.com/2021/day/7) | The Treachery of Whales | [py](2021/07.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-07-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [08](https://adventofcode.com/2021/day/8) | Seven Segment Search | [py](2021/08.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-08-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [09](https://adventofcode.com/2021/day/9) | Smoke Basin | [py](2021/09.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-09-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [10](https://adventofcode.com/2021/day/10) | Syntax Scoring | [py](2021/10.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-10-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [11](https://adventofcode.com/2021/day/11) | Dumbo Octopus | [py](2021/11.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-11-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [12](https://adventofcode.com/2021/day/12) | Passage Pathing | [py](2021/12.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-12-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [13](https://adventofcode.com/2021/day/13) | Transparent Origami | [py](2021/13.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-13-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [14](https://adventofcode.com/2021/day/14) | Extended Polymerization | [py](2021/14.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-14-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [15](https://adventofcode.com/2021/day/15) | Chiton | | |
| [16](https://adventofcode.com/2021/day/16) | Packet Decoder | | |
| [17](https://adventofcode.com/2021/day/17) | | | |
| [18](https://adventofcode.com/2021/day/18) | | | |
| [19](https://adventofcode.com/2021/day/19) | | | |
| [20](https://adventofcode.com/2021/day/20) | Trench Map | [py](2021/20.py)** | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-20.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [20](https://adventofcode.com/2021/day/20) | Trench Map | [py](2021/20.py)** | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-20-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| --- | ------ | --------- | --- |
| [all](https://adventofcode.com/2021) | AoC 21 | [txt](2021/answers.txt) | M1 - 1.397 s, CI - [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |
| [all](https://adventofcode.com/2021) | AoC 21 | [txt](2021/answers.txt) | M1 - 1.397 s, CI - [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2021.yaml) |

* or ** - external solution adopted

Expand Down
4 changes: 4 additions & 0 deletions 2021/benchmark-m1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Benchmark 1: find 2021 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python
Time (mean ± σ): 1.170 s ± 0.083 s [User: 1.862 s, System: 1.134 s]
Range (min … max): 1.088 s … 1.327 s 10 runs

File renamed without changes.
Loading

0 comments on commit f8fa115

Please sign in to comment.