Current benchmark data was generated on Sun Jun 01 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 |
---|---|---|---|---|---|---|---|
d | 1-im.d | 389ms | 21ms | 3.0MB | 1423ms | 0ms | ldc2 1.40.1 |
zig | 2-m.zig | 638ms | 2.2ms | 1.4MB | 2400ms | 0ms | zig 0.14.1 |
d | 2-im.d | 1118ms | 4.1ms | 3.0MB | 4323ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 1486ms | 5.4ms | 2.9MB | 1473ms | 0ms | ldc2 1.40.1 |
zig | 3-i.zig | 1764ms | 0.6ms | 1.0MB | 1753ms | 0ms | zig 0.14.1 |
zig | 1.zig | 2716ms | 5.8ms | 1.0MB | 2707ms | 0ms | zig 0.14.1 |
d | 1.d | 3121ms | 27ms | 2.8MB | 3110ms | 0ms | ldc2 1.40.1 |
d | 2-i.d | 3238ms | 0.8ms | 2.9MB | 3230ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3537ms | 4.6ms | 4.6MB | 3527ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 4471ms | 28ms | 4.9MB | 17507ms | 0ms | dmd 2.111.0 |
d | 1-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.111.0 |
d | 2-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.111.0 |
d | 2-im.d | timeout | 0.0ms | 4.9MB | 19737ms | 13ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 37ms | 0.6ms | 3.0MB | 110ms | 0ms | ldc2 1.40.1 |
zig | 2-m.zig | 60ms | 0.3ms | 1.4MB | 200ms | 0ms | zig 0.14.1 |
d | 2-im.d | 97ms | 1.6ms | 3.0MB | 347ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 123ms | 0.5ms | 2.9MB | 110ms | 0ms | ldc2 1.40.1 |
zig | 3-i.zig | 147ms | 0.4ms | 1.0MB | 140ms | 0ms | zig 0.14.1 |
zig | 1.zig | 229ms | 0.8ms | 1.0MB | 220ms | 0ms | zig 0.14.1 |
d | 1.d | 263ms | 1.6ms | 2.9MB | 250ms | 0ms | ldc2 1.40.1 |
d | 2-i.d | 268ms | 1.3ms | 2.9MB | 260ms | 0ms | ldc2 1.40.1 |
d | 1.d | 297ms | 1.3ms | 4.6MB | 290ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 383ms | 15ms | 4.9MB | 1427ms | 0ms | dmd 2.111.0 |
d | 2-im.d | 520ms | 1.5ms | 4.9MB | 2007ms | 0ms | dmd 2.111.0 |
d | 1-i.d | 891ms | 4.6ms | 4.6MB | 883ms | 0ms | dmd 2.111.0 |
d | 2-i.d | 1382ms | 12ms | 4.5MB | 1373ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1-m.zig | 314ms | 1.1ms | 66.5MB | 827ms | 30ms | zig 0.14.1 |
zig | 1.zig | 500ms | 5.4ms | 28.0MB | 483ms | 7ms | zig 0.14.1 |
d | 1-m.d | 622ms | 16ms | 47.8MB | 2043ms | 10ms | ldc2 1.40.1 |
d | 1-m.d | 1876ms | 46ms | 58.6MB | 5530ms | 10ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 35ms | 0.8ms | 2.8MB | 30ms | 0ms | zig 0.14.1 |
d | 1.d | 131ms | 1.4ms | 6.1MB | 120ms | 0ms | ldc2 1.40.1 |
d | 1.d | 187ms | 22ms | 7.9MB | 177ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 3.zig | 198ms | 1.0ms | 1.0MB | 190ms | 0ms | zig 0.14.1 |
zig | 2.zig | 279ms | 0.5ms | 1.0MB | 270ms | 0ms | zig 0.14.1 |
zig | 1.zig | 315ms | 0.7ms | 1.1MB | 310ms | 0ms | zig 0.14.1 |
d | 1.d | 360ms | 0.7ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 2.d | 361ms | 1.1ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 678ms | 10ms | 4.8MB | 670ms | 0ms | dmd 2.111.0 |
d | 2.d | 2037ms | 13ms | 4.6MB | 2027ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 3.zig | 21ms | 0.2ms | 1.0MB | 10ms | 0ms | zig 0.14.1 |
zig | 2.zig | 30ms | 0.1ms | 1.0MB | 20ms | 0ms | zig 0.14.1 |
zig | 1.zig | 34ms | 0.6ms | 1.1MB | 30ms | 0ms | zig 0.14.1 |
d | 1.d | 39ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 2.d | 39ms | 0.4ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 1.d | 71ms | 1.0ms | 4.8MB | 60ms | 0ms | dmd 2.111.0 |
d | 2.d | 210ms | 0.8ms | 4.6MB | 200ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 255ms | 8.2ms | 40.2MB | 240ms | 0ms | zig 0.14.1 |
d | 1.d | 322ms | 14ms | 43.5MB | 307ms | 3ms | ldc2 1.40.1 |
zig | 2.zig | 328ms | 2.8ms | 6.0MB | 320ms | 0ms | zig 0.14.1 |
d | 1.d | 352ms | 8.5ms | 79.3MB | 333ms | 7ms | dmd 2.111.0 |
d | 2.d | 841ms | 2.9ms | 47.5MB | 820ms | 7ms | ldc2 1.40.1 |
d | 2.d | 1167ms | 5.5ms | 51.5MB | 1150ms | 3ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 55ms | 1.4ms | 10.9MB | 43ms | 0ms | zig 0.14.1 |
d | 1.d | 64ms | 3.8ms | 15.6MB | 57ms | 0ms | ldc2 1.40.1 |
d | 1.d | 76ms | 3.3ms | 25.3MB | 67ms | 0ms | dmd 2.111.0 |
zig | 2.zig | 81ms | 1.1ms | 2.3MB | 70ms | 0ms | zig 0.14.1 |
d | 2.d | 209ms | 1.1ms | 17.8MB | 200ms | 0ms | ldc2 1.40.1 |
d | 2.d | 293ms | 1.8ms | 19.8MB | 280ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 3595ms | 3.6ms | 4.0MB | 3587ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3642ms | 31ms | 5.9MB | 3633ms | 0ms | dmd 2.111.0 |
zig | 1.zig | 3684ms | 1.8ms | 1.4MB | 3670ms | 0ms | zig 0.14.1 |