GitHub Actions based
on Docker image built with make build-ci
.
To profile with hyperfine - brew install hyperfine
hyperfine --warmup 3 -r 10 '2024/01.py'
find 2024 -type f -regex ".*/[0-9]*\.py" -exec hyperfine --warmup 3 -r 10 'python {}' \;
time python 2024/01.py
python -m cProfile 2024/01.py
To create a visualization of the profiling results (requires brew install graphviz
):
export problem=2024/01 && python -m cProfile -o $problem.pstats $problem.py && gprof2dot -f pstats $problem.pstats | dot -Tpng -o $problem.png
Year | Stars | Solutions | M1 2021 Benchmark | CI Benchmark |
---|---|---|---|---|
https://adventofcode.com/2024 | 2024 | |||
https://adventofcode.com/2023 | 2023 | |||
https://adventofcode.com/2022 | 2022 | |||
https://adventofcode.com/2021 | 2021 | |||
https://adventofcode.com/2020 | 2020 | 28.560 s | ||
https://adventofcode.com/2015 | 2015 | 33 ms |