To profile with hyperfine - brew install hyperfine
hyperfine --warmup 3 -r 10 '2023/01.py'
find 2023 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \;
python -m cProfile 2023/01.py
time python 2023/01.py
hyperfine --warmup 3 -r 10 'find 2023 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs -L 1 python ' | tee 2023/benchmark-m1.txt
bin/run-all-solutions.py --dir 2023 --write
Day | Name | Solution | CI Benchmark |
---|---|---|---|
01 | Trebuchet | py | |
02 | Cube Conundrum | py | |
03 | Gear Ratios | py | |
04 | Scratchcards | py | |
05 | If You Give A Seed A Fertilizer | py* | |
----------------------------------------- | --------------------------------- | ------------------------- | --- |
all | AoC 23 | txt |
- or ** - external solution adopted