Current benchmark data was generated on Tue Apr 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 | 375ms | 6.2ms | 3.0MB | 1430ms | 0ms | ldc2 1.40.1 |
d | 2-im.d | 1116ms | 3.8ms | 3.0MB | 4320ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 1484ms | 1.3ms | 2.9MB | 1473ms | 0ms | ldc2 1.40.1 |
swift | 1.swift | 2470ms | 5.4ms | 5.6MB | 2460ms | 0ms | swift 6.0.3 |
d | 1.d | 3117ms | 14ms | 2.9MB | 3110ms | 0ms | ldc2 1.40.1 |
d | 2-i.d | 3237ms | 1.8ms | 2.9MB | 3227ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3562ms | 12ms | 4.6MB | 3550ms | 0ms | dmd 2.110.0 |
d | 1-im.d | 4472ms | 33ms | 4.9MB | 17553ms | 10ms | dmd 2.110.0 |
d | 1-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.110.0 |
d | 2-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.110.0 |
d | 2-im.d | timeout | 0.0ms | 4.9MB | 19697ms | 7ms | dmd 2.110.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 37ms | 0.5ms | 3.1MB | 110ms | 0ms | ldc2 1.40.1 |
d | 2-im.d | 99ms | 0.1ms | 3.0MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1-i.d | 124ms | 0.3ms | 2.9MB | 117ms | 0ms | ldc2 1.40.1 |
swift | 1.swift | 211ms | 0.6ms | 5.6MB | 200ms | 0ms | swift 6.0.3 |
d | 1.d | 263ms | 2.2ms | 2.9MB | 253ms | 0ms | ldc2 1.40.1 |
d | 2-i.d | 268ms | 0.9ms | 2.8MB | 260ms | 0ms | ldc2 1.40.1 |
d | 1.d | 299ms | 0.4ms | 4.6MB | 290ms | 0ms | dmd 2.110.0 |
d | 1-im.d | 378ms | 1.1ms | 5.0MB | 1437ms | 0ms | dmd 2.110.0 |
d | 2-im.d | 524ms | 1.1ms | 5.0MB | 2000ms | 3ms | dmd 2.110.0 |
d | 1-i.d | 867ms | 10ms | 4.5MB | 853ms | 0ms | dmd 2.110.0 |
d | 2-i.d | 1368ms | 16ms | 4.6MB | 1360ms | 0ms | dmd 2.110.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 130ms | 0.9ms | 6.1MB | 120ms | 0ms | ldc2 1.40.1 |
d | 1.d | 178ms | 1.6ms | 8.1MB | 167ms | 0ms | dmd 2.110.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
swift | 7.swift | 347ms | 2.5ms | 9.8MB | 337ms | 0ms | swift 6.0.3 |
d | 2.d | 361ms | 0.6ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 362ms | 1.0ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 686ms | 4.3ms | 4.6MB | 677ms | 0ms | dmd 2.110.0 |
d | 2.d | 2031ms | 8.1ms | 4.6MB | 2023ms | 0ms | dmd 2.110.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 2.d | 39ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 1.d | 40ms | 0.3ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
swift | 7.swift | 41ms | 1.3ms | 9.8MB | 30ms | 0ms | swift 6.0.3 |
d | 1.d | 71ms | 0.7ms | 4.6MB | 60ms | 0ms | dmd 2.110.0 |
d | 2.d | 207ms | 1.6ms | 4.6MB | 200ms | 0ms | dmd 2.110.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 3596ms | 8.1ms | 3.8MB | 3583ms | 0ms | ldc2 1.40.1 |
d | 1.d | 3674ms | 49ms | 6.0MB | 3667ms | 0ms | dmd 2.110.0 |