Advent of Code 2020 solutions in Zig
README.md

Benchmark

zig build run -Drelease-fast -fstage1

Day                                            Result                Time
day01a:                                        482811                  73 us
day01b:                                     193171814                4021 us
day02a:                                           572                 398 us
day02b:                                           306                 192 us
day03a:                                           148                 118 us
day03b:                                     727923200                 107 us
day04a:                                           235                 298 us
day04b:                                           194                 430 us
day05a:                                           974                 144 us
day05b:                                           646                 127 us
day06a:                                          6335                 193 us
day06b:                                          3392                 195 us
day07a:                                           119                2745 us
day07b:                                        155802                1465 us
day08a:                                          1727                  65 us
day08b:                                           552                3533 us
day09a:                                    1930745883                 231 us
day09b:                                     268878261                 911 us
day10a:                                          2482                  70 us
day10b:                                96717311574016                  15 us
day11a:                                          2316               21235 us
day11b:                                          2128               49729 us
day12a:                                          1589                  52 us
day12b:                                         23960                  57 us
day13a:                                           161                   6 us
day13b:                               213890632230818                  12 us
day14a:                                11327140210986                 321 us
day14b:                                 2308180581795               24081 us
day15a:                                           614                  18 us
day15b:                                          1065             1782656 us
day16a:                                         19087                 331 us
day16b:                                 1382443095281                 964 us
day17a:                                           223               23328 us
day17b:                                          1884              582051 us
day18a:                                   21410728815                 353 us
day18b:                               201376568795521                 417 us
day19a:                                           208                 956 us
day19b:                                           316                1659 us
day20a:                                83775126454273              350589 us
day20b:                                          1993              353200 us
day21a:                                          2162                 982 us
day21b:    lmzg,cxk,bsqh,bdvmx,cpbzbx,drbm,cfnt,kqprv                 762 us
day22a:                                         33561                  78 us
day22b:                                         34594              938710 us
day23a:                                      78569234                   3 us
day23b:                                  565615814504             1538623 us
day24a:                                           332                 266 us
day24b:                                          3900              131053 us
day25a:                                      16457981               88503 us
Total time: 5906 ms

zig build run -Drelease-fast

Day                                            Result                Time
day01a:                                        482811                  90 us
day01b:                                     193171814                7311 us
day02a:                                           572                 357 us
day02b:                                           306                 309 us
day03a:                                           148                 237 us
day03b:                                     727923200                 562 us
day04a:                                           235                 368 us
day04b:                                           194                 531 us
day05a:                                           974                 194 us
day05b:                                           646                 172 us
day06a:                                          6335                 248 us
day06b:                                          3392                 251 us
day07a:                                           119                2540 us
day07b:                                        155802                2007 us
day08a:                                          1727                  89 us
day08b:                                           552                4104 us
day09a:                                    1930745883                 244 us
day09b:                                     268878261                1003 us
day10a:                                          2482                  25 us
day10b:                                96717311574016                  17 us
day11a:                                          2316             6547979 us
day11b:                                          2128             8507078 us
day12a:                                          1589                  63 us
day12b:                                         23960                  53 us
day13a:                                           161                   8 us
day13b:                               213890632230818                  12 us
day14a:                                11327140210986                 386 us
day14b:                                 2308180581795               34796 us
day15a:                                           614                  20 us
day15b:                                          1065             1854317 us
day16a:                                         19087                 335 us
day16b:                                 1382443095281                 959 us
day17a:                                           223               23399 us
day17b:                                          1884              595219 us
day18a:                                   21410728815                 286 us
day18b:                               201376568795521                 553 us
day19a:                                           208                1081 us
day19b:                                           316                1789 us
day20a:                                83775126454273              324258 us
day20b:                                          1993              325073 us
day21a:                                          2162                1049 us
day21b:    lmzg,cxk,bsqh,bdvmx,cpbzbx,drbm,cfnt,kqprv                 838 us
day22a:                                         33561                  81 us
day22b:                                         34594             1050138 us
day23a:                                      78569234                   6 us
day23b:                                  565615814504             1537181 us
day24a:                                           332                 283 us
day24b:                                          3900              143001 us
day25a:                                      16457981               88383 us
Total time: 21059 ms