/aoc2022

https://adventofcode.com/2022

Primary LanguagePythonMIT LicenseMIT

advent of code 2022

https://adventofcode.com/2022

stream / youtube

about

for 2022, I'm planning to implement in python

timing

  • comparing to these numbers isn't necessarily useful
  • normalize your timing to day 1 part 1 and compare
  • alternate implementations are listed in parens
  • these timings are very non-scientific (sample size 1)
$ find -maxdepth 1 -type d -name 'day*' -not -name day00 | sort | xargs --replace bash -xc 'python {}/part1.py {}/input.txt; python {}/part2.py {}/input.txt'
+ python day01/part1.py day01/input.txt
68787
> 756 μs
+ python day01/part2.py day01/input.txt
198041
> 789 μs
+ python day02/part1.py day02/input.txt
13268
> 1485 μs
+ python day02/part2.py day02/input.txt
508
> 1533 μs
+ python day03/part1.py day03/input.txt
8123
> 907 μs
+ python day03/part2.py day03/input.txt
2620
> 625 μs