Current benchmark data was generated on Wed May 25 2022, 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 |
---|---|---|---|---|---|---|---|
swift | 7.swift | 428ms | 28ms | 5.4MB | 420ms | 0ms | swift 5.6.1 |
d | 1.d | 463ms | 9.0ms | 1.2MB | 450ms | 0ms | ldc2 1.29.0 |
d | 2.d | 487ms | 1.8ms | 1.2MB | 473ms | 0ms | ldc2 1.29.0 |
d | 1.d | 1093ms | 2.5ms | 1.9MB | 1080ms | 0ms | dmd 2.100.0 |
d | 2.d | 2903ms | 0.8ms | 2.0MB | 2890ms | 0ms | dmd 2.100.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
swift | 7.swift | 43ms | 0.7ms | 5.4MB | 33ms | 0ms | swift 5.6.1 |
d | 1.d | 51ms | 0.7ms | 1.2MB | 40ms | 0ms | ldc2 1.29.0 |
d | 2.d | 52ms | 0.3ms | 1.2MB | 40ms | 0ms | ldc2 1.29.0 |
d | 1.d | 127ms | 0.4ms | 2.0MB | 120ms | 0ms | dmd 2.100.0 |
d | 2.d | 260ms | 0.6ms | 1.9MB | 250ms | 0ms | dmd 2.100.0 |