From f8fa1156ebf23949119db2afdc80348ba280b264 Mon Sep 17 00:00:00 2001 From: Evgeni Gordeev Date: Wed, 6 Dec 2023 22:22:28 -0600 Subject: [PATCH] redo benchmark badges --- 2021.md | 36 ++++++++++++----------- 2021/benchmark-m1.txt | 4 +++ 2021/{benchmark.txt => benchmark-old.txt} | 0 2022.md | 32 ++++++++++---------- 2022/benchmark-m1.txt | 4 +++ 2022/benchmark.txt | 4 --- 2023.md | 1 + README.md | 6 ++-- 8 files changed, 48 insertions(+), 39 deletions(-) create mode 100644 2021/benchmark-m1.txt rename 2021/{benchmark.txt => benchmark-old.txt} (100%) create mode 100644 2022/benchmark-m1.txt delete mode 100644 2022/benchmark.txt diff --git a/2021.md b/2021.md index 77c6124..9673646 100644 --- a/2021.md +++ b/2021.md @@ -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 @@ -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 diff --git a/2021/benchmark-m1.txt b/2021/benchmark-m1.txt new file mode 100644 index 0000000..515b875 --- /dev/null +++ b/2021/benchmark-m1.txt @@ -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 + diff --git a/2021/benchmark.txt b/2021/benchmark-old.txt similarity index 100% rename from 2021/benchmark.txt rename to 2021/benchmark-old.txt diff --git a/2022.md b/2022.md index d9b3e8a..39fcdb9 100644 --- a/2022.md +++ b/2022.md @@ -3,7 +3,7 @@ ![](https://img.shields.io/badge/stars%20⭐-6-yellow) ![](https://img.shields.io/badge/days%20completed-3-red) ![](https://img.shields.io/badge/day%20📅-3-blue) -[![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) +[![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) * [https://adventofcode.com/2022](https://adventofcode.com/2022) @@ -12,22 +12,22 @@ To profile with hyperfine - ```brew install hyperfine``` * ```hyperfine --warmup 3 -r 10 '2022/01.py'``` * ```find 2022 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \;``` * ```python -m cProfile 2022/01.py``` -* ```time python 2022/01.py``` -* ```hyperfine --warmup 3 -r 10 'find 2022 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2022/benchmark.txt``` +* ```time python 2022/01.py```[2022.md](2022.md) +* ```hyperfine --warmup 3 -r 10 'find 2022 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2022/benchmark-m1.txt``` * ```bin/run-all-solutions.py --dir 2022 --write``` -| Day | Name | Solution | CI Benchmark | -|-------------------------------------------|-------------------------|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [01](https://adventofcode.com/2022/day/1) | Calorie Counting | [py](2022/01.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-01.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [02](https://adventofcode.com/2022/day/2) | Rock Paper Scissors | [py](2022/02.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-02.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [03](https://adventofcode.com/2022/day/3) | Rucksack Reorganization | [py](2022/03.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-03.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [04](https://adventofcode.com/2022/day/4) | Camp Cleanup | [py](2022/04.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-04.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [05](https://adventofcode.com/2022/day/5) | Supply Stacks | [py](2022/05.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-05.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [06](https://adventofcode.com/2022/day/6) | Tuning Trouble | [py](2022/06.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-06.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [07](https://adventofcode.com/2022/day/7) | No Space Left On Device | [py](2022/07.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-07.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [08](https://adventofcode.com/2022/day/8) | Treetop Tree House | [py](2022/08.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-08.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [09](https://adventofcode.com/2022/day/9) | Rope Bridge | [py](2022/09.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-09.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| --- | ------ | --------- | --- | -| [all](https://adventofcode.com/2022) | AoC 22 | [txt](2022/answers.txt) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| Day | Name | Solution | CI Benchmark | +|-------------------------------------------|-------------------------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [01](https://adventofcode.com/2022/day/1) | Calorie Counting | [py](2022/01.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-01-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [02](https://adventofcode.com/2022/day/2) | Rock Paper Scissors | [py](2022/02.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-02-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [03](https://adventofcode.com/2022/day/3) | Rucksack Reorganization | [py](2022/03.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-03-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [04](https://adventofcode.com/2022/day/4) | Camp Cleanup | [py](2022/04.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-04-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [05](https://adventofcode.com/2022/day/5) | Supply Stacks | [py](2022/05.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-05-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [06](https://adventofcode.com/2022/day/6) | Tuning Trouble | [py](2022/06.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-06-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [07](https://adventofcode.com/2022/day/7) | No Space Left On Device | [py](2022/07.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-07-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [08](https://adventofcode.com/2022/day/8) | Treetop Tree House | [py](2022/08.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-08-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [09](https://adventofcode.com/2022/day/9) | Rope Bridge | [py](2022/09.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-09-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| --- | ------ | --------- | --- | +| [all](https://adventofcode.com/2022) | AoC 22 | [txt](2022/answers.txt) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | * or ** - external solution adopted diff --git a/2022/benchmark-m1.txt b/2022/benchmark-m1.txt new file mode 100644 index 0000000..0108f40 --- /dev/null +++ b/2022/benchmark-m1.txt @@ -0,0 +1,4 @@ +Benchmark 1: find 2022 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python + Time (mean ± σ): 210.8 ms ± 2.8 ms [User: 168.8 ms, System: 36.7 ms] + Range (min … max): 207.5 ms … 215.3 ms 10 runs + diff --git a/2022/benchmark.txt b/2022/benchmark.txt deleted file mode 100644 index 379ec50..0000000 --- a/2022/benchmark.txt +++ /dev/null @@ -1,4 +0,0 @@ -Benchmark 1: find 2022 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python - Time (mean ± σ): 211.5 ms ± 5.8 ms [User: 168.2 ms, System: 37.1 ms] - Range (min … max): 204.8 ms … 225.1 ms 10 runs - diff --git a/2023.md b/2023.md index e51bbe5..7e6732b 100644 --- a/2023.md +++ b/2023.md @@ -22,6 +22,7 @@ To profile with hyperfine - `brew install hyperfine` | [02](https://adventofcode.com/2023/day/2) | Cube Conundrum | [py](2023/02.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-02-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | | [03](https://adventofcode.com/2023/day/3) | Gear Ratios | [py](2023/03.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-03-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | | [04](https://adventofcode.com/2023/day/4) | Scratchcards | [py](2023/04.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-04-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | +| [05](https://adventofcode.com/2023/day/5) | If You Give A Seed A Fertilizer | [py](2023/05.py) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-05-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | | --- | ------ | --------- | --- | | [all](https://adventofcode.com/2023) | AoC 23 | [txt](2023/answers.txt) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | diff --git a/README.md b/README.md index 1eb9eaf..682312e 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,11 @@ [![example workflow](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2015.yaml/badge.svg)](https://github.com/EvgeniGordeev/adventofcode/actions) ## repo + [EvgeniGordeev/adventofcode](https://github.com/EvgeniGordeev/adventofcode) ## tools + [Benchmark](https://github.com/sharkdp/hyperfine) ## solutions @@ -17,8 +19,8 @@ | Year | Stars | Solutions | M1 2021 Benchmark | CI Benchmark | |----------------------------------------------------------------|-------------------------------------------------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [https://adventofcode.com/2023](https://adventofcode.com/2023) | ![](https://img.shields.io/badge/stars%20⭐-8-yellow) | [2023](2023.md) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-all-m1.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2023-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2023.yaml) | -| [https://adventofcode.com/2022](https://adventofcode.com/2022) | ![](https://img.shields.io/badge/stars%20⭐-18-yellow) | [2022](2022.md) | 211 ms | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | -| [https://adventofcode.com/2021](https://adventofcode.com/2021) | ![](https://img.shields.io/badge/stars%20⭐-30-yellow) | [2021](2021.md) | 740 ms | [![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) | +| [https://adventofcode.com/2022](https://adventofcode.com/2022) | ![](https://img.shields.io/badge/stars%20⭐-18-yellow) | [2022](2022.md) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all-m1.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2022-all-ci.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2022.yaml) | +| [https://adventofcode.com/2021](https://adventofcode.com/2021) | ![](https://img.shields.io/badge/stars%20⭐-30-yellow) | [2021](2021.md) | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2021-all-m1.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/2020](https://adventofcode.com/2020) | ![](https://img.shields.io/badge/stars%20⭐-45-yellow) | [2020](2020.md) | 28.560 s | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2020-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2020.yaml) | | [https://adventofcode.com/2015](https://adventofcode.com/2015) | ![](https://img.shields.io/badge/stars%20⭐-6-yellow) | [2015](2015.md) | 33 ms | [![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/EvgeniGordeev/13c6cac3c39702cdcb9cc169b66c3210/raw/runtime-badge-2015-all.json)](https://github.com/EvgeniGordeev/adventofcode/actions/workflows/ci2015.yaml) |