Current benchmark data was generated on Thu May 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 | 391ms | 24ms | 3.0MB | 1430ms | 0ms | ldc2 1.40.1 |
zig | 2-m.zig | 632ms | 6.8ms | 1.4MB | 2400ms | 0ms | zig 0.14.0 |
d | 2-im.d | 1113ms | 7.1ms | 3.0MB | 4320ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 1485ms | 0.7ms | 2.8MB | 1480ms | 0ms | ldc2 1.40.1 |
zig | 3-i.zig | 1765ms | 2.1ms | 1.0MB | 1757ms | 0ms | zig 0.14.0 |
zig | 1.zig | 2717ms | 3.5ms | 1.0MB | 2707ms | 0ms | zig 0.14.0 |
d | 1.d | 3141ms | 18ms | 2.9MB | 3133ms | 0ms | ldc2 1.40.1 |
d | 2-i.d | 3237ms | 0.6ms | 2.9MB | 3230ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3539ms | 9.8ms | 4.6MB | 3530ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 4480ms | 46ms | 4.9MB | 17513ms | 7ms | 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.6MB | 4990ms | 0ms | dmd 2.111.0 |
d | 2-im.d | timeout | 0.0ms | 4.9MB | 19827ms | 10ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 37ms | 0.7ms | 3.1MB | 110ms | 0ms | ldc2 1.40.1 |
zig | 2-m.zig | 60ms | 0.7ms | 1.4MB | 200ms | 0ms | zig 0.14.0 |
d | 2-im.d | 97ms | 0.9ms | 3.0MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 123ms | 0.4ms | 2.8MB | 117ms | 0ms | ldc2 1.40.1 |
zig | 3-i.zig | 147ms | 0.2ms | 1.0MB | 140ms | 0ms | zig 0.14.0 |
zig | 1.zig | 228ms | 1.2ms | 1.0MB | 220ms | 0ms | zig 0.14.0 |
d | 2-i.d | 268ms | 1.4ms | 2.9MB | 260ms | 0ms | ldc2 1.40.1 |
d | 1.d | 270ms | 16ms | 2.9MB | 260ms | 0ms | ldc2 1.40.1 |
d | 1.d | 299ms | 2.2ms | 4.6MB | 290ms | 0ms | dmd 2.111.0 |
d | 1-im.d | 378ms | 3.7ms | 4.8MB | 1427ms | 0ms | dmd 2.111.0 |
d | 2-im.d | 547ms | 15ms | 4.9MB | 2003ms | 0ms | dmd 2.111.0 |
d | 1-i.d | 898ms | 12ms | 4.5MB | 887ms | 0ms | dmd 2.111.0 |
d | 2-i.d | 1375ms | 11ms | 4.5MB | 1363ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1-m.zig | 315ms | 1.9ms | 67.1MB | 830ms | 30ms | zig 0.14.0 |
zig | 1.zig | 504ms | 5.3ms | 28.1MB | 477ms | 10ms | zig 0.14.0 |
d | 1-m.d | 663ms | 47ms | 56.3MB | 2020ms | 10ms | ldc2 1.40.1 |
d | 1-m.d | 1909ms | 21ms | 50.0MB | 5543ms | 10ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 35ms | 2.4ms | 2.8MB | 27ms | 0ms | zig 0.14.0 |
d | 1.d | 129ms | 1.7ms | 6.1MB | 120ms | 0ms | ldc2 1.40.1 |
d | 1.d | 175ms | 2.3ms | 8.1MB | 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.2ms | 1.0MB | 190ms | 0ms | zig 0.14.0 |
zig | 2.zig | 279ms | 0.4ms | 1.0MB | 270ms | 0ms | zig 0.14.0 |
zig | 1.zig | 315ms | 1.0ms | 1.1MB | 307ms | 0ms | zig 0.14.0 |
d | 1.d | 362ms | 1.3ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 2.d | 362ms | 0.9ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 680ms | 3.0ms | 4.8MB | 670ms | 0ms | dmd 2.111.0 |
d | 2.d | 2030ms | 3.5ms | 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.3ms | 1.1MB | 10ms | 0ms | zig 0.14.0 |
zig | 2.zig | 30ms | 0.1ms | 1.0MB | 20ms | 0ms | zig 0.14.0 |
zig | 1.zig | 34ms | 0.6ms | 1.1MB | 23ms | 0ms | zig 0.14.0 |
d | 2.d | 38ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 1.d | 39ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 1.d | 72ms | 0.8ms | 4.8MB | 60ms | 0ms | dmd 2.111.0 |
d | 2.d | 207ms | 0.5ms | 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 | 271ms | 2.6ms | 40.2MB | 250ms | 0ms | zig 0.14.0 |
d | 1.d | 310ms | 2.0ms | 43.5MB | 293ms | 3ms | ldc2 1.40.1 |
zig | 2.zig | 328ms | 2.4ms | 6.0MB | 320ms | 0ms | zig 0.14.0 |
d | 1.d | 360ms | 4.2ms | 79.3MB | 343ms | 7ms | dmd 2.111.0 |
d | 2.d | 843ms | 1.6ms | 47.5MB | 827ms | 3ms | ldc2 1.40.1 |
d | 2.d | 1170ms | 1.5ms | 51.5MB | 1150ms | 7ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 54ms | 4.4ms | 10.9MB | 47ms | 0ms | zig 0.14.0 |
d | 1.d | 63ms | 3.5ms | 15.7MB | 53ms | 0ms | ldc2 1.40.1 |
d | 1.d | 75ms | 2.1ms | 25.5MB | 63ms | 0ms | dmd 2.111.0 |
zig | 2.zig | 81ms | 0.9ms | 2.3MB | 70ms | 0ms | zig 0.14.0 |
d | 2.d | 208ms | 1.4ms | 17.7MB | 200ms | 0ms | ldc2 1.40.1 |
d | 2.d | 292ms | 0.9ms | 19.9MB | 280ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 3595ms | 8.5ms | 4.0MB | 3583ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3629ms | 18ms | 6.3MB | 3620ms | 0ms | dmd 2.111.0 |
zig | 1.zig | 3689ms | 4.3ms | 1.4MB | 3683ms | 0ms | zig 0.14.0 |