Current benchmark data was generated on Wed Jan 22 2025, full log can be found HERE
CONTRIBUTIONS are WELCOME!
* -m in a file name stands for multi-threading or multi-processing
* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)
* -ffi in a file name stands for non-stdlib FFI usage
* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 87ms | 0.6ms | 1.1MB | 80ms | 0ms | zig 0.13.0 |
nim | 2.nim | 185ms | 2.3ms | 1.5MB | 177ms | 0ms | nim 2.2.0 |
nim | 2.nim | 238ms | 0.8ms | 1.8MB | 227ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 578ms | 7.8ms | 1.8MB | 453ms | 110ms | nim/clang 2.2.0 |
nim | 1.nim | 599ms | 1.3ms | 1.5MB | 473ms | 110ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 10ms | 0.1ms | 1.1MB | 0ms | 0ms | zig 0.13.0 |
nim | 2.nim | 20ms | 0.3ms | 1.5MB | 10ms | 0ms | nim 2.2.0 |
nim | 2.nim | 26ms | 0.3ms | 1.8MB | 13ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 60ms | 0.5ms | 1.8MB | 37ms | 10ms | nim/clang 2.2.0 |
nim | 1.nim | 62ms | 0.1ms | 1.5MB | 40ms | 10ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 35ms | 1.1ms | 2.9MB | 30ms | 0ms | zig 0.13.0 |
nim | 2.nim | 110ms | 1.6ms | 1.6MB | 100ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 114ms | 0.5ms | 1.4MB | 103ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4990ms | 0ms | nim/clang 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 97ms | 2.2ms | 2.9MB | 83ms | 0ms | zig 0.13.0 |
nim | 2.nim | 323ms | 4.9ms | 1.6MB | 313ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 337ms | 4.4ms | 1.4MB | 323ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4987ms | 0ms | nim/clang 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 16ms | 0.6ms | 1.4MB | 10ms | 0ms | zig 0.13.0 |
nim | 2.nim | 49ms | 1.1ms | 1.5MB | 40ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 50ms | 0.3ms | 1.3MB | 40ms | 0ms | nim 2.2.0 |
nim | 1.nim | 493ms | 4.9ms | 1.5MB | 480ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 519ms | 32ms | 1.3MB | 510ms | 0ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 473ms | 1.2ms | 3.9MB | 1583ms | 7ms | zig 0.13.0 |
zig | 2.zig | 916ms | 1.6ms | 1.5MB | 903ms | 0ms | zig 0.13.0 |
nim | 1.nim | 3573ms | 2.3ms | 1.6MB | 3560ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 3597ms | 4.0ms | 1.4MB | 3587ms | 0ms | nim 2.2.0 |
zig | 1.zig | 3670ms | 6.3ms | 1.5MB | 3660ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 125ms | 0.3ms | 3.7MB | 273ms | 3ms | zig 0.13.0 |
zig | 2.zig | 231ms | 2.4ms | 1.4MB | 220ms | 0ms | zig 0.13.0 |
nim | 1.nim | 895ms | 0.4ms | 1.5MB | 880ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 898ms | 1.4ms | 1.3MB | 887ms | 0ms | nim 2.2.0 |
zig | 1.zig | 921ms | 1.9ms | 1.4MB | 910ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 39ms | 1.5ms | 3.7MB | 33ms | 0ms | zig 0.13.0 |
zig | 2.zig | 60ms | 0.8ms | 1.4MB | 50ms | 0ms | zig 0.13.0 |
nim | 1.nim | 226ms | 0.5ms | 1.5MB | 213ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 227ms | 0.9ms | 1.3MB | 217ms | 0ms | nim 2.2.0 |
zig | 1.zig | 232ms | 0.8ms | 1.4MB | 220ms | 0ms | zig 0.13.0 |