Current benchmark data was generated on Wed Feb 08 2023, 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 | 165ms | 2.4ms | 1.0MB | 153ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 291ms | 3.7ms | 1.0MB | 277ms | 0ms | nim 1.6.10 |
nim | 2.nim | 367ms | 10.0ms | 1.3MB | 353ms | 0ms | nim/clang 1.6.10 |
nim | 1.nim | 823ms | 13ms | 1.3MB | 707ms | 97ms | nim/clang 1.6.10 |
nim | 1.nim | 839ms | 20ms | 1.0MB | 723ms | 100ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 22ms | 1.6ms | 1.0MB | 10ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 34ms | 2.2ms | 1.1MB | 20ms | 0ms | nim 1.6.10 |
nim | 2.nim | 39ms | 0.2ms | 1.3MB | 30ms | 0ms | nim/clang 1.6.10 |
nim | 1.nim | 84ms | 1.5ms | 1.2MB | 63ms | 7ms | nim/clang 1.6.10 |
nim | 1.nim | 89ms | 0.6ms | 1.1MB | 67ms | 7ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 59ms | 1.7ms | 2.8MB | 50ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 180ms | 1.4ms | 1.3MB | 170ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 184ms | 1.5ms | 1.0MB | 170ms | 0ms | nim 1.6.10 |
nim | 1.nim | timeout | 0.0ms | 1.1MB | 4983ms | 0ms | nim 1.6.10 |
nim | 1.nim | timeout | 0.0ms | 1.2MB | 4987ms | 0ms | nim/clang 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 164ms | 1.5ms | 2.9MB | 150ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 535ms | 14ms | 1.3MB | 520ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 540ms | 0.9ms | 1.1MB | 530ms | 0ms | nim 1.6.10 |
nim | 1.nim | timeout | 0.0ms | 1.0MB | 4990ms | 0ms | nim 1.6.10 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4983ms | 0ms | nim/clang 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 33ms | 8.3ms | 1.3MB | 23ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 77ms | 2.3ms | 1.2MB | 67ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 80ms | 1.7ms | 1.0MB | 70ms | 0ms | nim 1.6.10 |
nim | 1.nim | 449ms | 7.2ms | 1.3MB | 437ms | 0ms | nim/clang 1.6.10 |
nim | 1.nim | 496ms | 1.6ms | 1.0MB | 483ms | 0ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 308ms | 5.8ms | 1.1MB | 293ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 1.zig | 462ms | 6.7ms | 1.0MB | 453ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 489ms | 4.9ms | 1.2MB | 477ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 489ms | 14ms | 1.3MB | 477ms | 0ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 35ms | 0.6ms | 1.0MB | 27ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 1.zig | 50ms | 1.5ms | 1.0MB | 40ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 52ms | 1.6ms | 1.3MB | 43ms | 0ms | nim 1.6.10 |
nim | 2.nim | 53ms | 2.1ms | 1.2MB | 40ms | 0ms | nim/clang 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 439ms | 0.8ms | 6.0MB | 423ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 782ms | 1.9ms | 6.3MB | 770ms | 0ms | nim/clang 1.6.10 |
zig | 1.zig | 943ms | 42ms | 40.1MB | 917ms | 10ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 2.nim | 988ms | 18ms | 6.0MB | 973ms | 0ms | nim 1.6.10 |
nim | 1.nim | 1048ms | 48ms | 41.3MB | 1023ms | 10ms | nim/clang 1.6.10 |
nim | 1.nim | 1053ms | 31ms | 40.6MB | 1027ms | 7ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 97ms | 2.8ms | 2.1MB | 87ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 1.zig | 128ms | 1.0ms | 10.9MB | 110ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 1.nim | 153ms | 1.5ms | 11.1MB | 140ms | 0ms | nim 1.6.10 |
nim | 1.nim | 156ms | 2.8ms | 11.3MB | 140ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 174ms | 4.5ms | 3.2MB | 163ms | 0ms | nim/clang 1.6.10 |
nim | 2.nim | 240ms | 7.1ms | 3.1MB | 230ms | 0ms | nim 1.6.10 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 1088ms | 3.9ms | 1.2MB | 2083ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 2.zig | 2072ms | 6.8ms | 1.0MB | 2063ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 1.nim | 4075ms | 23ms | 1.2MB | 4060ms | 0ms | nim/clang 1.6.10 |
nim | 1.nim | 4100ms | 19ms | 1.3MB | 4087ms | 0ms | nim 1.6.10 |
zig | 1.zig | 4631ms | 11ms | 1.0MB | 4617ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 284ms | 2.0ms | 1.2MB | 510ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 2.zig | 525ms | 10ms | 1.0MB | 513ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 1.nim | 1028ms | 4.7ms | 1.3MB | 1020ms | 0ms | nim 1.6.10 |
nim | 1.nim | 1040ms | 16ms | 1.2MB | 1027ms | 0ms | nim/clang 1.6.10 |
zig | 1.zig | 1156ms | 3.2ms | 1.0MB | 1143ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 79ms | 1.5ms | 1.1MB | 127ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
zig | 2.zig | 136ms | 2.1ms | 1.6MB | 127ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |
nim | 1.nim | 261ms | 1.5ms | 1.2MB | 250ms | 0ms | nim/clang 1.6.10 |
nim | 1.nim | 262ms | 2.0ms | 1.3MB | 250ms | 0ms | nim 1.6.10 |
zig | 1.zig | 294ms | 0.5ms | 1.0MB | 280ms | 0ms | zig 0.11.0-dev.1580+a5b34a61a |