Current benchmark data was generated on Tue Jul 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 | 373ms | 5.6ms | 3.1MB | 1427ms | 0ms | ldc2 1.41.0 |
zig | 2-m.zig | 634ms | 3.4ms | 1.4MB | 2393ms | 0ms | zig 0.14.1 |
d | 2-im.d | 1114ms | 9.3ms | 3.0MB | 4320ms | 0ms | ldc2 1.41.0 |
d | 1-i.d | 1488ms | 1.7ms | 2.9MB | 1480ms | 0ms | ldc2 1.41.0 |
zig | 3-i.zig | 1791ms | 48ms | 1.0MB | 1780ms | 0ms | zig 0.14.1 |
zig | 1.zig | 2728ms | 20ms | 1.0MB | 2720ms | 0ms | zig 0.14.1 |
d | 1.d | 3143ms | 19ms | 2.9MB | 3130ms | 0ms | ldc2 1.41.0 |
d | 2-i.d | 3232ms | 3.6ms | 2.9MB | 3223ms | 0ms | ldc2 1.41.0 |
d | 1.d | 3544ms | 3.7ms | 4.6MB | 3533ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 4461ms | 9.7ms | 5.3MB | 17560ms | 0ms | dmd 2.111.0 |
d | 1-i.d | timeout | 0.0ms | 4.6MB | 4990ms | 0ms | dmd 2.111.0 |
d | 2-i.d | timeout | 0.0ms | 4.6MB | 4990ms | 0ms | dmd 2.111.0 |
d | 2-im.d | timeout | 0.0ms | 4.9MB | 19740ms | 20ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 36ms | 0.9ms | 3.1MB | 110ms | 0ms | ldc2 1.41.0 |
zig | 2-m.zig | 60ms | 0.4ms | 1.4MB | 200ms | 0ms | zig 0.14.1 |
d | 2-im.d | 98ms | 1.6ms | 3.0MB | 347ms | 0ms | ldc2 1.41.0 |
d | 1-i.d | 124ms | 0.3ms | 2.9MB | 120ms | 0ms | ldc2 1.41.0 |
zig | 3-i.zig | 147ms | 0.3ms | 1.0MB | 140ms | 0ms | zig 0.14.1 |
zig | 1.zig | 228ms | 1.0ms | 1.0MB | 220ms | 0ms | zig 0.14.1 |
d | 1.d | 265ms | 3.5ms | 2.9MB | 257ms | 0ms | ldc2 1.41.0 |
d | 2-i.d | 266ms | 1.0ms | 2.9MB | 260ms | 0ms | ldc2 1.41.0 |
d | 1.d | 300ms | 2.1ms | 4.6MB | 290ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 402ms | 34ms | 4.8MB | 1410ms | 0ms | dmd 2.111.0 |
d | 2-im.d | 524ms | 3.0ms | 4.9MB | 2003ms | 0ms | dmd 2.111.0 |
d | 1-i.d | 887ms | 8.9ms | 4.5MB | 877ms | 0ms | dmd 2.111.0 |
d | 2-i.d | 1393ms | 4.6ms | 4.5MB | 1383ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1-m.zig | 321ms | 1.7ms | 67.1MB | 853ms | 20ms | zig 0.14.1 |
zig | 1.zig | 504ms | 4.0ms | 27.9MB | 480ms | 13ms | zig 0.14.1 |
d | 1-m.d | 713ms | 31ms | 47.5MB | 2403ms | 10ms | ldc2 1.41.0 |
d | 1-m.d | 2035ms | 101ms | 50.6MB | 6757ms | 17ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 36ms | 0.2ms | 2.8MB | 30ms | 0ms | zig 0.14.1 |
d | 1.d | 130ms | 1.9ms | 5.9MB | 120ms | 0ms | ldc2 1.41.0 |
d | 1.d | 178ms | 3.2ms | 7.9MB | 167ms | 3ms | 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.3ms | 1.0MB | 270ms | 0ms | zig 0.14.1 |
zig | 1.zig | 315ms | 1.5ms | 1.1MB | 307ms | 0ms | zig 0.14.1 |
d | 1.d | 361ms | 1.2ms | 2.9MB | 350ms | 0ms | ldc2 1.41.0 |
d | 2.d | 361ms | 0.9ms | 2.9MB | 350ms | 0ms | ldc2 1.41.0 |
d | 1.d | 677ms | 14ms | 4.8MB | 667ms | 0ms | dmd 2.111.0 |
d | 2.d | 2033ms | 5.4ms | 4.8MB | 2023ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 3.zig | 22ms | 0.1ms | 1.0MB | 10ms | 0ms | zig 0.14.1 |
zig | 2.zig | 30ms | 0.0ms | 1.0MB | 20ms | 0ms | zig 0.14.1 |
zig | 1.zig | 33ms | 0.1ms | 1.1MB | 30ms | 0ms | zig 0.14.1 |
d | 1.d | 39ms | 0.6ms | 2.9MB | 30ms | 0ms | ldc2 1.41.0 |
d | 2.d | 39ms | 0.7ms | 2.9MB | 30ms | 0ms | ldc2 1.41.0 |
d | 1.d | 71ms | 1.2ms | 4.6MB | 60ms | 0ms | dmd 2.111.0 |
d | 2.d | 210ms | 1.7ms | 4.8MB | 200ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 274ms | 3.8ms | 40.2MB | 257ms | 0ms | zig 0.14.1 |
zig | 2.zig | 325ms | 2.5ms | 6.0MB | 313ms | 0ms | zig 0.14.1 |
d | 1.d | 344ms | 7.7ms | 45.7MB | 323ms | 7ms | ldc2 1.41.0 |
d | 1.d | 385ms | 4.2ms | 79.2MB | 370ms | 0ms | dmd 2.111.0 |
d | 2.d | 854ms | 0.6ms | 49.7MB | 833ms | 10ms | ldc2 1.41.0 |
d | 2.d | 1168ms | 1.5ms | 49.3MB | 1150ms | 10ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 50ms | 2.9ms | 10.9MB | 40ms | 0ms | zig 0.14.1 |
d | 1.d | 63ms | 4.3ms | 15.7MB | 53ms | 0ms | ldc2 1.41.0 |
d | 1.d | 78ms | 3.7ms | 25.3MB | 67ms | 0ms | dmd 2.111.0 |
zig | 2.zig | 81ms | 0.8ms | 2.3MB | 70ms | 0ms | zig 0.14.1 |
d | 2.d | 211ms | 1.2ms | 17.8MB | 200ms | 0ms | ldc2 1.41.0 |
d | 2.d | 297ms | 1.9ms | 19.7MB | 280ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 3599ms | 3.4ms | 4.0MB | 3590ms | 0ms | ldc2 1.41.0 |
d | 1.d | 3649ms | 20ms | 5.9MB | 3640ms | 0ms | dmd 2.111.0 |
zig | 1.zig | 3691ms | 6.4ms | 1.4MB | 3683ms | 0ms | zig 0.14.1 |