Skip to content

EvgeniGordeev/adventofcode

Repository files navigation

adventofcode

example workflow example workflow example workflow example workflow example workflow example workflow

repo

EvgeniGordeev/adventofcode

ci

GitHub Actions based on Docker image built with make build-ci.

tools

Benchmark

profiling

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

profiling visualization

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

solutions

Year Stars Solutions M1 2021 Benchmark CI Benchmark
https://adventofcode.com/2024 2024 badge badge
https://adventofcode.com/2023 2023 badge badge
https://adventofcode.com/2022 2022 badge badge
https://adventofcode.com/2021 2021 badge badge
https://adventofcode.com/2020 2020 28.560 s badge
https://adventofcode.com/2015 2015 33 ms badge

Releases

No releases published

Packages

No packages published

Languages