Skip to content

Instantly share code, notes, and snippets.

@truemedian
Last active December 12, 2020 05:32
Show Gist options
  • Save truemedian/ca62b7609f82ae5fc8c0976fcfb499fb to your computer and use it in GitHub Desktop.
Save truemedian/ca62b7609f82ae5fc8c0976fcfb499fb to your computer and use it in GitHub Desktop.
Advent of Code Benchmarks
$ zig build d01 -Drelease-fast
Benchmark File:
Time: 0s 0ms 261us 0ns
Memory: 0MB 4KB 96B
Benchmark Input:
Time: 0s 0ms 1us 600ns
Memory: 0MB 0KB 0B
Benchmark Part 1 & 2:
Time: 0s 0ms 703us 500ns
Memory: 0MB 0KB 0B
P1: 211899
P2: 275765682
$ zig build d10 -Drelease-fast
Benchmark File:
Time: 0s 1ms 116us 800ns
Memory: 0MB 2KB 44B
Benchmark Input:
Time: 0s 0ms 5us 500ns
Memory: 0MB 1KB 296B
Benchmark Part 1:
Time: 0s 0ms 0us 100ns
Memory: 0MB 0KB 0B
Benchmark Part 2:
Time: 0s 0ms 6us 800ns
Memory: 0MB 0KB 888B
P1: 2760
P2: 172562072
$ zig build d11 -Drelease-fast
Benchmark File:
Time: 0s 0ms 293us 100ns
Memory: 0MB 9KB 684B
Benchmark Input:
Time: 0s 0ms 65us 200ns
Memory: 0MB 19KB 164B
Benchmark Part 1:
Time: 0s 12ms 993us 900ns
Memory: 0MB 0KB 0B
Benchmark Input Reset:
Time: 0s 0ms 35us 400ns
Memory: 0MB 8KB 178B
Benchmark Part 2:
Time: 0s 32ms 83us 500ns
Memory: 0MB 0KB 0B
P1: 2194
P2: 1944
$ zig build d12 -Drelease-fast
Benchmark File:
Time: 0s 0ms 267us 800ns
Memory: 0MB 14KB 496B
Benchmark Part 1:
Time: 0s 0ms 23us 100ns
Memory: 0MB 0KB 0B
Benchmark Part 2:
Time: 0s 0ms 11us 300ns
Memory: 0MB 0KB 0B
P1: 923
P2: 24769
$ zig build d02 -Drelease-fast
Benchmark File:
Time: 0s 0ms 322us 800ns
Memory: 0MB 35KB 777B
Benchmark Part 1 & 2:
Time: 0s 0ms 60us 600ns
Memory: 0MB 0KB 0B
P1: 538
P2: 489
$ zig build d03 -Drelease-fast
Benchmark File:
Time: 0s 0ms 271us 0ns
Memory: 0MB 15KB 143B
Benchmark Part 1:
Time: 0s 0ms 1us 200ns
Memory: 0MB 0KB 0B
Benchmark Part 2:
Time: 0s 0ms 3us 400ns
Memory: 0MB 0KB 0B
P1: 209
P2: 1574890240
$ zig build d04 -Drelease-fast
Benchmark File:
Time: 0s 0ms 279us 900ns
Memory: 0MB 19KB 719B
Benchmark Part 1 & 2:
Time: 0s 0ms 144us 500ns
Memory: 0MB 0KB 0B
P1: 213
P2: 147
$ zig build d05 -Drelease-fast
Benchmark File:
Time: 0s 0ms 267us 500ns
Memory: 0MB 22KB 232B
Benchmark Part 1:
Time: 0s 0ms 6us 100ns
Memory: 0MB 0KB 0B
Benchmark Part 2:
Time: 0s 0ms 0us 700ns
Memory: 0MB 0KB 0B
P1: 896
P2: 659
$ zig build d06 -Drelease-fast
Benchmark File:
Time: 0s 0ms 467us 200ns
Memory: 0MB 23KB 605B
Benchmark Part 1 & 2:
Time: 0s 0ms 60us 900ns
Memory: 0MB 0KB 0B
P1: 6387
P2: 3039
$ zig build d07 -Drelease-fast
Benchmark File:
Time: 0s 2ms 308us 700ns
Memory: 0MB 53KB 115B
Benchmark Input:
Time: 0s 0ms 301us 500ns
Memory: 0MB 149KB 563B
Benchmark Part 1:
Time: 0s 2ms 882us 0ns
Memory: 0MB 0KB 0B
Benchmark Part 2:
Time: 0s 0ms 4us 300ns
Memory: 0MB 0KB 0B
P1: 248
P2: 57281
$ zig build d08 -Drelease-fast
Benchmark File:
Time: 0s 0ms 306us 600ns
Memory: 0MB 15KB 58B
Benchmark Initialization:
Time: 0s 0ms 102us 600ns
Memory: 0MB 29KB 928B
Benchmark Part 1:
Time: 0s 0ms 36us 100ns
Memory: 0MB 10KB 606B
Benchmark Part 2:
Time: 0s 0ms 219us 0ns
Memory: 0MB 0KB 0B
P1: 1521
P2: 203395
$ zig build d09 -Drelease-fast
Benchmark File:
Time: 0s 2ms 470us 400ns
Memory: 0MB 24KB 56B
Benchmark Part 1:
Time: 0s 0ms 52us 200ns
Memory: 0MB 7KB 832B
Benchmark Part 2:
Time: 0s 0ms 24us 900ns
Memory: 0MB 34KB 19B
P1: 507622668
P2: 76688505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment