Skip to content

Latest commit

 

History

History

y2019

Advent of Code 2019

My Elixir solutions for Advent of Code 2019.

40 stars

Benchmarks

If you're curious how long each of my solutions roughly takes to run.

You can check out the code yourself and run the benchmarks with mix bench 2019!

(Benchmarking results sorted manually for ease of read)

Name                     ips        average  deviation         median         99th %
day 01, part 1      16136.84      0.0620 ms    ±59.32%      0.0589 ms      0.0906 ms
day 01, part 2      14261.47      0.0701 ms    ±47.33%      0.0676 ms       0.103 ms
day 02, part 1      14904.58      0.0671 ms    ±29.60%      0.0616 ms       0.107 ms
day 02, part 2         23.36       42.80 ms     ±0.46%       42.79 ms       44.10 ms
day 03, part 1         15.55       64.31 ms     ±4.22%       64.35 ms       72.96 ms
day 03, part 2          8.11      123.24 ms     ±6.91%      121.98 ms      165.65 ms
day 04, part 1          2.65      377.83 ms     ±4.33%      381.33 ms      386.86 ms
day 04, part 2         14.35       69.68 ms     ±1.10%       69.48 ms       74.00 ms
day 05, part 1       7951.74       0.126 ms    ±74.07%       0.122 ms       0.179 ms
day 05, part 2       6070.91       0.165 ms    ±58.81%       0.154 ms        0.38 ms
day 06, part 1         20.80       48.07 ms     ±2.61%       47.86 ms       50.47 ms
day 06, part 2        144.20        6.93 ms     ±7.02%        6.82 ms        7.88 ms
day 07, part 1          4.12      242.69 ms     ±0.58%      242.88 ms      245.75 ms
day 07, part 2          3.90      256.63 ms     ±4.78%      254.37 ms      285.90 ms
day 08, part 1        489.36        2.04 ms    ±15.73%        1.87 ms        2.87 ms
day 08, part 2        716.86        1.39 ms    ±18.21%        1.27 ms        2.30 ms
day 09, part 1       4063.69        0.25 ms    ±13.25%        0.25 ms        0.31 ms
day 09, part 2          4.21      237.31 ms     ±0.73%      237.35 ms      240.94 ms
day 10, part 1          6.48      154.31 ms     ±0.61%      153.95 ms      158.03 ms
day 10, part 2          3.97      252.14 ms     ±0.81%      252.24 ms      254.94 ms
day 11, part 1         14.80       67.56 ms     ±1.88%       67.64 ms       70.29 ms
day 11, part 2        179.82        5.56 ms     ±3.32%        5.52 ms        6.23 ms
day 12, part 1        474.96        2.11 ms     ±3.40%        2.11 ms        2.44 ms
day 12, part 2          1.69      593.02 ms     ±2.08%      589.30 ms      623.50 ms
day 13, part 1         88.14       11.35 ms     ±2.30%       11.34 ms       12.20 ms
day 13, part 2         0.103     9666.99 ms     ±0.00%     9666.99 ms     9666.99 ms
day 14, part 1       1408.20        0.71 ms     ±3.92%        0.70 ms        0.78 ms
day 14, part 2          1.86      538.77 ms     ±0.18%      538.46 ms      541.21 ms
day 15, part 1         14.88       67.18 ms     ±0.95%       67.20 ms       68.98 ms
day 15, part 2          4.30      232.61 ms     ±1.20%      232.34 ms      239.80 ms
day 16, part 1          0.88         1.13 s     ±0.37%         1.13 s         1.14 s
day 17, part 1         47.03       21.26 ms     ±5.12%       21.07 ms       28.03 ms
day 17, part 2         15.41       64.88 ms     ±2.35%       64.90 ms       73.27 ms
day 18, part 1       0.00514       3.24 min     ±0.00%       3.24 min       3.24 min 🤭
day 18, part 2       0.00251       6.64 min     ±0.00%       6.64 min       6.64 min 🤭
day 19, part 1         14.37       69.61 ms     ±1.76%       69.55 ms       72.55 ms
day 19, part 2          4.21      237.63 ms     ±0.20%      237.70 ms      238.42 ms
day 20, part 1         46.46       21.52 ms     ±5.19%       21.37 ms       24.56 ms
day 20, part 2        0.0133       1.25 min     ±0.00%       1.25 min       1.25 min 🤭
day 21, part 1          1.33      749.68 ms    ±29.82%      666.99 ms     1225.01 ms