Current benchmark data was generated on Mon Dec 30 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 |
---|---|---|---|---|---|---|---|
d | 1-im.d | 376ms | 8.5ms | 3.0MB | 1413ms | 0ms | ldc2 1.40.0 |
zig | 2-m.zig | 653ms | 2.8ms | 3.5MB | 2430ms | 0ms | zig 0.13.0 |
d | 2-im.d | 1116ms | 1.7ms | 6.9MB | 4283ms | 0ms | ldc2 1.40.0 |
d | 1-i.d | 1478ms | 1.3ms | 2.8MB | 1467ms | 0ms | ldc2 1.40.0 |
zig | 3-i.zig | 1789ms | 1.5ms | 1.1MB | 1780ms | 0ms | zig 0.13.0 |
zig | 2.zig | 2410ms | 17ms | 1.1MB | 2397ms | 0ms | zig 0.13.0 |
zig | 1.zig | 2865ms | 5.6ms | 1.1MB | 2853ms | 0ms | zig 0.13.0 |
d | 1.d | 3119ms | 18ms | 2.8MB | 3107ms | 0ms | ldc2 1.40.0 |
d | 2-i.d | 3221ms | 2.9ms | 2.9MB | 3207ms | 0ms | ldc2 1.40.0 |
d | 1.d | 3509ms | 8.3ms | 4.6MB | 3497ms | 0ms | dmd 2.109.1 |
d | 1-im.d | 4230ms | 23ms | 8.9MB | 16527ms | 10ms | dmd 2.109.1 |
d | 1-i.d | timeout | 0.0ms | 4.4MB | 4990ms | 0ms | dmd 2.109.1 |
d | 2-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.109.1 |
d | 2-im.d | timeout | 0.0ms | 6.9MB | 19703ms | 7ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 39ms | 2.0ms | 5.2MB | 110ms | 0ms | ldc2 1.40.0 |
zig | 2-m.zig | 63ms | 0.4ms | 3.5MB | 190ms | 0ms | zig 0.13.0 |
d | 2-im.d | 98ms | 2.3ms | 5.1MB | 340ms | 0ms | ldc2 1.40.0 |
d | 1-i.d | 123ms | 0.3ms | 2.8MB | 110ms | 0ms | ldc2 1.40.0 |
zig | 3-i.zig | 149ms | 0.3ms | 1.1MB | 140ms | 0ms | zig 0.13.0 |
zig | 2.zig | 199ms | 2.5ms | 1.1MB | 187ms | 0ms | zig 0.13.0 |
zig | 1.zig | 239ms | 0.4ms | 1.1MB | 230ms | 0ms | zig 0.13.0 |
d | 1.d | 263ms | 4.5ms | 2.9MB | 253ms | 0ms | ldc2 1.40.0 |
d | 2-i.d | 266ms | 0.6ms | 2.8MB | 260ms | 0ms | ldc2 1.40.0 |
d | 1.d | 294ms | 1.7ms | 4.6MB | 283ms | 0ms | dmd 2.109.1 |
d | 1-im.d | 356ms | 2.8ms | 6.9MB | 1343ms | 0ms | dmd 2.109.1 |
d | 2-im.d | 531ms | 1.3ms | 8.7MB | 1987ms | 3ms | dmd 2.109.1 |
d | 1-i.d | 865ms | 4.8ms | 4.5MB | 857ms | 0ms | dmd 2.109.1 |
d | 2-i.d | 1381ms | 9.1ms | 4.5MB | 1367ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 36ms | 2.0ms | 2.9MB | 27ms | 0ms | zig 0.13.0 |
d | 1.d | 129ms | 11ms | 4.1MB | 117ms | 23ms | ldc2 1.40.0 |
d | 1.d | 179ms | 1.3ms | 7.9MB | 173ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 273ms | 0.3ms | 1.1MB | 260ms | 0ms | zig 0.13.0 |
zig | 1.zig | 313ms | 1.5ms | 1.3MB | 300ms | 0ms | zig 0.13.0 |
d | 1.d | 359ms | 0.2ms | 2.9MB | 347ms | 0ms | ldc2 1.40.0 |
d | 2.d | 359ms | 1.7ms | 2.9MB | 350ms | 0ms | ldc2 1.40.0 |
d | 1.d | 678ms | 2.0ms | 4.6MB | 670ms | 0ms | dmd 2.109.1 |
d | 2.d | 2007ms | 1.9ms | 4.6MB | 1997ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2.zig | 29ms | 0.0ms | 1.1MB | 20ms | 0ms | zig 0.13.0 |
zig | 1.zig | 34ms | 0.4ms | 1.3MB | 27ms | 0ms | zig 0.13.0 |
d | 1.d | 38ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.0 |
d | 2.d | 39ms | 0.4ms | 2.9MB | 30ms | 0ms | ldc2 1.40.0 |
d | 1.d | 71ms | 0.4ms | 4.6MB | 60ms | 0ms | dmd 2.109.1 |
d | 2.d | 205ms | 1.6ms | 4.6MB | 193ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 256ms | 4.4ms | 40.3MB | 240ms | 3ms | zig 0.13.0 |
d | 1.d | 298ms | 6.7ms | 43.7MB | 280ms | 3ms | ldc2 1.40.0 |
zig | 2.zig | 332ms | 1.0ms | 6.1MB | 320ms | 0ms | zig 0.13.0 |
d | 1.d | 337ms | 2.8ms | 75.9MB | 323ms | 3ms | dmd 2.109.1 |
d | 2.d | 836ms | 2.2ms | 47.7MB | 817ms | 0ms | ldc2 1.40.0 |
d | 2.d | 1166ms | 1.4ms | 49.3MB | 1157ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 54ms | 4.2ms | 11.0MB | 43ms | 0ms | zig 0.13.0 |
d | 1.d | 60ms | 1.2ms | 13.7MB | 47ms | 0ms | ldc2 1.40.0 |
d | 1.d | 68ms | 3.1ms | 24.2MB | 57ms | 0ms | dmd 2.109.1 |
zig | 2.zig | 81ms | 0.6ms | 2.4MB | 70ms | 0ms | zig 0.13.0 |
d | 2.d | 206ms | 0.3ms | 15.7MB | 197ms | 0ms | ldc2 1.40.0 |
d | 2.d | 294ms | 3.9ms | 17.8MB | 280ms | 3ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 472ms | 1.1ms | 3.8MB | 1593ms | 0ms | zig 0.13.0 |
zig | 2.zig | 916ms | 0.9ms | 1.5MB | 900ms | 0ms | zig 0.13.0 |
d | 1.d | 3582ms | 2.7ms | 4.0MB | 3567ms | 0ms | ldc2 1.40.0 |
d | 1.d | 3602ms | 9.7ms | 8.5MB | 3590ms | 0ms | dmd 2.109.1 |
zig | 1.zig | 3661ms | 1.6ms | 1.5MB | 3650ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 125ms | 0.2ms | 3.7MB | 280ms | 3ms | zig 0.13.0 |
zig | 2.zig | 231ms | 2.4ms | 1.4MB | 220ms | 0ms | zig 0.13.0 |
d | 1.d | 897ms | 2.4ms | 3.7MB | 887ms | 0ms | ldc2 1.40.0 |
d | 1.d | 908ms | 0.9ms | 5.3MB | 900ms | 0ms | dmd 2.109.1 |
zig | 1.zig | 918ms | 3.2ms | 1.4MB | 910ms | 0ms | zig 0.13.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 2-m.zig | 39ms | 1.1ms | 3.7MB | 30ms | 0ms | zig 0.13.0 |
zig | 2.zig | 59ms | 0.6ms | 1.4MB | 50ms | 0ms | zig 0.13.0 |
d | 1.d | 227ms | 0.4ms | 3.1MB | 217ms | 0ms | ldc2 1.40.0 |
d | 1.d | 231ms | 2.6ms | 5.1MB | 220ms | 0ms | dmd 2.109.1 |
zig | 1.zig | 233ms | 1.9ms | 1.4MB | 223ms | 0ms | zig 0.13.0 |