Current benchmark data was generated on Wed Feb 08 2023, 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 | 799ms | 0.9ms | 1.5MB | 1513ms | 0ms | ldc2 1.30.0 |
d | 1-i.d | 1483ms | 6.0ms | 1.5MB | 1470ms | 0ms | ldc2 1.30.0 |
d | 2-im.d | 3038ms | 42ms | 1.5MB | 5880ms | 0ms | ldc2 1.30.0 |
swift | 1.swift | 3536ms | 37ms | 2.4MB | 3527ms | 0ms | swift 5.7.3 |
d | 1.d | 4796ms | 40ms | 1.5MB | 4780ms | 0ms | ldc2 1.30.0 |
d | 1-i.d | timeout | 0.0ms | 2.2MB | 4983ms | 0ms | dmd 2.102.0 |
d | 1-im.d | timeout | 0.0ms | 2.6MB | 9783ms | 3ms | dmd 2.102.0 |
d | 1.d | timeout | 0.0ms | 2.8MB | 4983ms | 0ms | dmd 2.102.0 |
d | 2-i.d | timeout | 0.0ms | 2.6MB | 4983ms | 0ms | dmd 2.102.0 |
d | 2-im.d | timeout | 0.0ms | 2.7MB | 9860ms | 0ms | dmd 2.102.0 |
d | 2-i.d | timeout | 0.0ms | 1.6MB | 4987ms | 0ms | ldc2 1.30.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1-im.d | 79ms | 2.1ms | 1.5MB | 120ms | 0ms | ldc2 1.30.0 |
d | 1-i.d | 134ms | 13ms | 1.6MB | 123ms | 0ms | ldc2 1.30.0 |
d | 2-im.d | 272ms | 7.5ms | 1.6MB | 480ms | 0ms | ldc2 1.30.0 |
swift | 1.swift | 293ms | 2.8ms | 5.2MB | 283ms | 0ms | swift 5.7.3 |
d | 1.d | 386ms | 6.0ms | 1.6MB | 377ms | 0ms | ldc2 1.30.0 |
d | 1.d | 420ms | 0.6ms | 2.7MB | 407ms | 0ms | dmd 2.102.0 |
d | 2-i.d | 480ms | 0.4ms | 1.5MB | 470ms | 0ms | ldc2 1.30.0 |
d | 1-im.d | 657ms | 120ms | 2.7MB | 1037ms | 0ms | dmd 2.102.0 |
d | 2-im.d | 923ms | 22ms | 2.9MB | 1730ms | 0ms | dmd 2.102.0 |
d | 1-i.d | 1057ms | 43ms | 2.2MB | 1047ms | 0ms | dmd 2.102.0 |
d | 2-i.d | 1622ms | 10ms | 2.6MB | 1613ms | 0ms | dmd 2.102.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 222ms | 5.9ms | 3.7MB | 213ms | 0ms | ldc2 1.30.0 |
d | 1.d | 296ms | 1.2ms | 5.3MB | 283ms | 0ms | dmd 2.102.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 542ms | 7.3ms | 1.5MB | 527ms | 0ms | ldc2 1.30.0 |
swift | 7.swift | 565ms | 41ms | 5.1MB | 553ms | 0ms | swift 5.7.3 |
d | 2.d | 577ms | 7.9ms | 1.5MB | 563ms | 0ms | ldc2 1.30.0 |
d | 1.d | 1466ms | 20ms | 2.6MB | 1453ms | 0ms | dmd 2.102.0 |
d | 2.d | 2593ms | 6.6ms | 2.7MB | 2580ms | 0ms | dmd 2.102.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 57ms | 0.4ms | 1.5MB | 50ms | 0ms | ldc2 1.30.0 |
swift | 7.swift | 58ms | 2.1ms | 5.1MB | 47ms | 0ms | swift 5.7.3 |
d | 2.d | 60ms | 0.3ms | 1.5MB | 47ms | 0ms | ldc2 1.30.0 |
d | 1.d | 155ms | 4.8ms | 2.6MB | 140ms | 0ms | dmd 2.102.0 |
d | 2.d | 264ms | 4.0ms | 2.6MB | 257ms | 0ms | dmd 2.102.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 3326ms | 2880ms | 5.1MB | 4983ms | 0ms | dmd 2.102.0 |
d | 1.d | 4357ms | 8.9ms | 3.7MB | 4343ms | 0ms | ldc2 1.30.0 |