Current benchmark data was generated on Tue Dec 31 2024, 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 | 81ms | 0.5ms | 1.1MB | 70ms | 0ms | zig 0.13.0 |
nim | 2.nim | 174ms | 1.9ms | 1.5MB | 160ms | 0ms | nim 2.2.0 |
nim | 2.nim | 226ms | 6.1ms | 1.8MB | 213ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 542ms | 6.4ms | 1.8MB | 420ms | 110ms | nim/clang 2.2.0 |
nim | 1.nim | 569ms | 4.4ms | 1.5MB | 470ms | 87ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 10ms | 0.6ms | 1.1MB | 0ms | 0ms | zig 0.13.0 |
nim | 2.nim | 20ms | 0.4ms | 1.5MB | 10ms | 0ms | nim 2.2.0 |
nim | 2.nim | 25ms | 1.4ms | 1.8MB | 17ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 58ms | 0.7ms | 1.8MB | 30ms | 17ms | nim/clang 2.2.0 |
nim | 1.nim | 60ms | 2.1ms | 1.5MB | 37ms | 10ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 33ms | 1.3ms | 2.9MB | 23ms | 0ms | zig 0.13.0 |
nim | 2.nim | 105ms | 4.1ms | 1.6MB | 97ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 108ms | 2.2ms | 1.8MB | 100ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4987ms | 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 | 90ms | 3.0ms | 2.9MB | 83ms | 0ms | zig 0.13.0 |
nim | 2.nim | 307ms | 6.6ms | 1.6MB | 297ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 319ms | 3.0ms | 1.4MB | 310ms | 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 | 14ms | 0.1ms | 1.4MB | 10ms | 0ms | zig 0.13.0 |
nim | 2.nim | 46ms | 1.6ms | 1.8MB | 40ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 49ms | 1.9ms | 1.5MB | 40ms | 0ms | nim 2.2.0 |
nim | 1.nim | 463ms | 5.7ms | 1.5MB | 450ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 467ms | 5.4ms | 1.3MB | 453ms | 0ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 450ms | 8.0ms | 3.8MB | 1500ms | 7ms | zig 0.13.0 |
zig | 2.zig | 872ms | 1.5ms | 1.5MB | 860ms | 0ms | zig 0.13.0 |
nim | 1.nim | 3383ms | 20ms | 1.6MB | 3370ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 3439ms | 35ms | 1.4MB | 3430ms | 0ms | nim 2.2.0 |
zig | 1.zig | 3472ms | 17ms | 1.5MB | 3463ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 119ms | 0.9ms | 3.7MB | 250ms | 3ms | zig 0.13.0 |
zig | 2.zig | 218ms | 2.6ms | 1.4MB | 203ms | 0ms | zig 0.13.0 |
nim | 1.nim | 848ms | 4.3ms | 1.5MB | 837ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 860ms | 8.6ms | 1.3MB | 853ms | 0ms | nim 2.2.0 |
zig | 1.zig | 875ms | 2.0ms | 1.4MB | 867ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 37ms | 1.7ms | 3.7MB | 30ms | 0ms | zig 0.13.0 |
zig | 2.zig | 56ms | 0.1ms | 1.4MB | 50ms | 0ms | zig 0.13.0 |
nim | 1.nim | 214ms | 1.3ms | 1.3MB | 203ms | 0ms | nim 2.2.0 |
nim | 1.nim | 217ms | 5.1ms | 1.5MB | 207ms | 0ms | nim/clang 2.2.0 |
zig | 1.zig | 224ms | 2.6ms | 1.4MB | 213ms | 0ms | zig 0.13.0 |