Skip to content

Latest commit

 

History

History

y2017

Advent of Code 2017

My Elixir solutions for Advent of Code 2017.

50 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 2017!

(Benchmarking results sorted manually for ease of read)

Name                     ips        average  deviation         median         99th %
day 01, part 1       9708.14       0.103 ms    ±20.60%       0.102 ms       0.143 ms
day 01, part 2       8736.49       0.114 ms    ±17.93%       0.112 ms       0.166 ms
day 02, part 1       7419.17       0.135 ms    ±12.75%       0.134 ms       0.148 ms
day 02, part 2       5660.14       0.177 ms    ±68.82%       0.160 ms        0.52 ms
day 03, part 1         28.02       35.69 ms    ±12.27%       35.40 ms       46.85 ms
day 03, part 2        354.98        2.82 ms    ±27.16%        2.82 ms        4.15 ms
day 04, part 1        326.28        3.06 ms     ±2.25%        3.06 ms        3.29 ms
day 04, part 2        279.12        3.58 ms     ±6.80%        3.52 ms        4.82 ms
day 05, part 1         29.31       34.12 ms     ±0.96%       34.07 ms       36.51 ms
day 05, part 2          0.37     2724.65 ms     ±0.00%     2724.65 ms     2724.74 ms
day 06, part 1         12.42       80.49 ms     ±2.58%       80.40 ms       84.07 ms
day 06, part 2         12.38       80.79 ms     ±2.55%       80.77 ms       85.40 ms
day 07, part 1         21.04       47.52 ms     ±0.44%       47.46 ms       48.78 ms
day 07, part 2         20.82       48.02 ms     ±0.73%       47.92 ms       49.01 ms
day 08, part 1        400.96        2.49 ms     ±3.75%        2.49 ms        2.84 ms
day 08, part 2        329.74        3.03 ms     ±3.71%        3.02 ms        3.38 ms
day 09, part 1       1256.67        0.80 ms    ±16.87%        0.79 ms        0.83 ms
day 09, part 2       1263.87        0.79 ms     ±4.68%        0.79 ms        0.81 ms
day 10, part 1       5282.43       0.189 ms    ±10.72%       0.187 ms        0.25 ms
day 10, part 2         67.54       14.81 ms     ±3.00%       14.85 ms       15.96 ms
day 11, part 1       1717.59        0.58 ms    ±11.48%        0.53 ms        0.72 ms
day 11, part 2       1708.64        0.59 ms    ±11.39%        0.53 ms        0.74 ms
day 12, part 1         48.54       20.60 ms     ±0.45%       20.59 ms       20.84 ms
day 12, part 2          3.84      260.60 ms     ±3.24%      257.42 ms      281.77 ms
day 13, part 1       4598.51        0.22 ms     ±7.40%        0.22 ms        0.25 ms
day 13, part 2          4.66      214.80 ms     ±0.50%      214.79 ms      218.64 ms
day 14, part 1          1.27      788.66 ms     ±0.14%      788.41 ms      790.79 ms
day 14, part 2          0.52     1912.20 ms     ±0.07%     1911.67 ms     1913.64 ms
day 15, part 1          0.57     1760.07 ms     ±2.51%     1735.73 ms     1810.98 ms
day 15, part 2          1.37      729.16 ms     ±0.69%      728.28 ms      740.16 ms
day 16, part 1        250.49        3.99 ms     ±3.84%        4.00 ms        4.55 ms
day 16, part 2         21.16       47.25 ms     ±0.44%       47.25 ms       47.73 ms
day 17, part 1        107.00        9.35 ms     ±0.84%        9.33 ms        9.52 ms
day 17, part 2          3.78      264.60 ms     ±0.08%      264.70 ms      264.84 ms
day 18, part 1       6851.45       0.146 ms    ±11.92%       0.146 ms       0.188 ms
day 19, part 1        145.21        6.89 ms     ±3.52%        6.83 ms        8.00 ms
day 19, part 2        148.38        6.74 ms     ±4.41%        6.66 ms        8.04 ms
day 20, part 1        226.38        4.42 ms     ±7.12%        4.37 ms        5.70 ms
day 20, part 2          4.76      210.08 ms     ±0.44%      210.24 ms      212.20 ms
day 21, part 1        470.45        2.13 ms     ±4.69%        2.13 ms        2.27 ms
day 21, part 2          0.56     1791.32 ms     ±0.81%     1785.89 ms     1807.75 ms
day 22, part 1        216.08        4.63 ms     ±2.59%        4.63 ms        5.24 ms
day 22, part 2         0.190     5271.13 ms     ±0.00%     5271.13 ms     5271.13 ms
day 23, part 1        234.51        4.26 ms     ±3.34%        4.22 ms        4.63 ms
day 23, part 2       1807.92        0.55 ms     ±1.04%        0.55 ms        0.57 ms
day 24, part 1          0.78     1277.81 ms    ±25.75%     1174.52 ms     1755.65 ms
day 24, part 2          0.77     1297.37 ms    ±25.02%     1209.72 ms     1725.22 ms
day 25, part 1          0.71     1416.61 ms     ±0.07%     1416.70 ms     1417.54 ms