All Zig benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

edigits

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.zig 4070ms 3.9ms 0.5MB 3933ms 117ms zig 0.10.0-dev

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.zig 1207ms 4.8ms 0.0MB 2357ms 0ms zig 0.10.0-dev
2.zig 2460ms 1.6ms 0.0MB 2450ms 0ms zig 0.10.0-dev
1.zig 3481ms 55ms 0.1MB 3467ms 0ms zig 0.10.0-dev

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.zig 107ms 1.1ms 0.0MB 193ms 0ms zig 0.10.0-dev
2.zig 209ms 0.8ms 0.0MB 200ms 0ms zig 0.10.0-dev
1.zig 289ms 2.0ms 0.1MB 280ms 0ms zig 0.10.0-dev

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.zig 1.4ms 0.7ms 0.1MB 0ms 0ms zig 0.10.0-dev

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 302ms 0.2ms 0.0MB 290ms 0ms zig 0.10.0-dev
1.zig 422ms 1.7ms 0.1MB 410ms 0ms zig 0.10.0-dev

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 31ms 0.8ms 0.0MB 20ms 0ms zig 0.10.0-dev
1.zig 44ms 0.9ms 0.2MB 37ms 0ms zig 0.10.0-dev

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 7.5ms 0.8ms 0.0MB 0ms 0ms zig 0.10.0-dev
1.zig 9.5ms 0.7ms 0.1MB 0ms 0ms zig 0.10.0-dev

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 428ms 2.0ms 4.9MB 420ms 0ms zig 0.10.0-dev
1.zig 849ms 25ms 39.1MB 833ms 3ms zig 0.10.0-dev

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 94ms 0.6ms 1.1MB 83ms 0ms zig 0.10.0-dev
1.zig 120ms 3.6ms 9.6MB 107ms 3ms zig 0.10.0-dev

pidigits

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.zig 2788ms 13ms 0.4MB 983ms 1793ms zig 0.10.0-dev

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.zig 429ms 1.8ms 0.2MB 107ms 307ms zig 0.10.0-dev

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 1065ms 13ms 0.3MB 2057ms 0ms zig 0.10.0-dev
1.zig 4575ms 0.8ms 0.1MB 4560ms 0ms zig 0.10.0-dev

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 274ms 5.6ms 0.2MB 503ms 0ms zig 0.10.0-dev
1.zig 1145ms 0.3ms 0.2MB 1133ms 0ms zig 0.10.0-dev

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.zig 21ms 0.3ms 0.1MB 27ms 3ms zig 0.10.0-dev
1.zig 73ms 0.6ms 0.2MB 63ms 0ms zig 0.10.0-dev