My Elixir solutions for Advent of Code 2018.
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 2018
!
(Benchmarking results sorted manually for ease of read)
Name ips average deviation median 99th %
day 01, part 1 10712.78 0.0933 ms ±29.91% 0.0876 ms 0.20 ms
day 01, part 2 19.75 50.62 ms ±4.33% 50.56 ms 60.86 ms
day 02, part 1 1347.38 0.74 ms ±5.59% 0.74 ms 0.81 ms
day 02, part 2 531.83 1.88 ms ±5.01% 1.87 ms 2.03 ms
day 03, part 1 3.69 270.95 ms ±4.79% 267.19 ms 309.48 ms
day 03, part 2 3.59 278.25 ms ±4.11% 274.33 ms 306.43 ms
day 04, part 1 238.85 4.19 ms ±2.18% 4.19 ms 4.46 ms
day 04, part 2 217.60 4.60 ms ±4.08% 4.56 ms 5.66 ms
day 05, part 1 85.31 11.72 ms ±22.39% 10.18 ms 19.00 ms
day 05, part 2 3.51 284.99 ms ±1.42% 284.28 ms 299.75 ms
day 06, part 1 3.38 295.94 ms ±1.87% 294.88 ms 305.68 ms
day 06, part 2 11.54 86.63 ms ±1.86% 86.20 ms 91.59 ms
day 07, part 1 5964.76 0.168 ms ±23.88% 0.163 ms 0.29 ms
day 07, part 2 452.92 2.21 ms ±17.49% 1.90 ms 2.78 ms
day 08, part 1 914.70 1.09 ms ±8.19% 1.08 ms 1.36 ms
day 08, part 2 876.95 1.14 ms ±10.21% 1.07 ms 1.43 ms
day 09, part 1 128.24 7.80 ms ±1.21% 7.79 ms 8.06 ms
day 09, part 2 0.82 1213.44 ms ±3.27% 1203.84 ms 1281.60 ms
day 10, part 1 17.72 56.43 ms ±6.76% 58.69 ms 62.14 ms
day 10, part 2 17.70 56.48 ms ±6.46% 58.64 ms 63.55 ms
day 11, part 1 10.37 96.43 ms ±3.81% 95.42 ms 105.90 ms
day 11, part 2 0.28 3518.22 ms ±0.23% 3518.22 ms 3523.88 ms
day 12, part 1 772.97 1.29 ms ±2.34% 1.29 ms 1.44 ms
day 12, part 2 83.25 12.01 ms ±1.23% 11.99 ms 12.55 ms
day 13, part 1 100.29 9.97 ms ±7.63% 9.61 ms 11.86 ms
day 13, part 2 13.44 74.40 ms ±1.16% 73.95 ms 76.40 ms
day 14, part 1 4.96 201.76 ms ±1.36% 201.76 ms 211.21 ms
day 14, part 2 0.0718 13935.68 ms ±0.00% 13935.68 ms 13935.68 ms
day 15, part 1 0.0371 0.45 min ±0.00% 0.45 min 0.45 min
day 15, part 2 0.00336 4.96 min ±0.00% 4.96 min 4.96 min
day 16, part 1 211.67 4.72 ms ±2.22% 4.72 ms 4.80 ms
day 16, part 2 164.09 6.09 ms ±1.91% 6.05 ms 6.31 ms
day 17, part 1 5.15 194.14 ms ±1.71% 192.75 ms 204.51 ms
day 17, part 2 5.15 194.13 ms ±1.07% 193.39 ms 198.32 ms
day 18, part 1 36.53 27.37 ms ±1.07% 27.35 ms 28.49 ms
day 18, part 2 0.74 1353.15 ms ±2.22% 1351.57 ms 1390.98 ms
day 19, part 1 1.95 512.62 ms ±1.13% 512.52 ms 524.94 ms
day 20, part 1 217.73 4.59 ms ±7.93% 4.54 ms 5.84 ms
day 20, part 2 214.43 4.66 ms ±8.72% 4.59 ms 6.55 ms
day 21, part 1 7242.52 0.138 ms ±38.93% 0.136 ms 0.178 ms
day 21, part 2 0.00677 147732.57 ms ±0.00% 147732.57 ms 147732.57 ms
day 22, part 1 154.85 6.46 ms ±5.64% 6.42 ms 7.89 ms
day 22, part 2 0.78 1289.39 ms ±8.29% 1246.17 ms 1448.34 ms
day 23, part 1 538.90 1.86 ms ±7.18% 1.84 ms 2.24 ms
day 23, part 2 0.74 1349.40 ms ±0.05% 1349.50 ms 1350.08 ms
day 24, part 1 105.53 9.48 ms ±1.72% 9.47 ms 9.91 ms
day 24, part 2 1.29 774.02 ms ±0.51% 774.23 ms 779.45 ms
day 25, part 1 4.98 200.99 ms ±0.70% 200.80 ms 205.95 ms