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 | Sonar Sweep | py | |
02 | Dive | py | |
03 | Binary Diagnostic | py | |
04 | Giant Squid | py | |
05 | Hydrothermal Venture | py | |
06 | Lanternfish | py | |
07 | The Treachery of Whales | py | |
08 | Seven Segment Search | py | |
09 | Smoke Basin | py | |
10 | Syntax Scoring | py | |
11 | Dumbo Octopus | py | |
12 | Passage Pathing | py | |
13 | Transparent Origami | py | |
14 | Extended Polymerization | py | |
15 | Chiton | ||
16 | Packet Decoder | ||
17 | |||
18 | |||
19 | |||
20 | Trench Map | py** | |
--- | ------ | --------- | --- |
all | AoC 21 | txt | M1 - 1.397 s, CI - |
- or ** - external solution adopted