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 |
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 |
swift | 1.swift | 2463ms | 3.1ms | 5.4MB | 2450ms | 0ms | swift 6.1.2 |
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 |
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 |
swift | 1.swift | 213ms | 1.3ms | 5.9MB | 203ms | 0ms | swift 6.1.2 |
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 |
---|---|---|---|---|---|---|---|
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 |
---|---|---|---|---|---|---|---|
swift | 7.swift | 350ms | 7.2ms | 10.3MB | 343ms | 0ms | swift 6.1.2 |
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 |
---|---|---|---|---|---|---|---|
swift | 7.swift | 39ms | 1.1ms | 10.0MB | 30ms | 0ms | swift 6.1.2 |
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 |
---|---|---|---|---|---|---|---|
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 |