Current benchmark data was generated on Mon May 19 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 | 2.d | 360ms | 0.1ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 360ms | 0.6ms | 2.9MB | 350ms | 0ms | ldc2 1.40.1 |
d | 1.d | 680ms | 2.4ms | 4.8MB | 670ms | 0ms | dmd 2.111.0 |
codon | 1.py | 1323ms | 14ms | 8.9MB | 1630ms | 0ms | codon 0.18.2 |
d | 2.d | 2035ms | 5.7ms | 4.6MB | 2023ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 38ms | 0.1ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 2.d | 39ms | 0.6ms | 2.9MB | 30ms | 0ms | ldc2 1.40.1 |
d | 1.d | 72ms | 1.0ms | 4.8MB | 60ms | 0ms | dmd 2.111.0 |
codon | 1-m.py | 177ms | 3.9ms | 8.8MB | 487ms | 0ms | codon 0.18.2 |
d | 2.d | 208ms | 2.5ms | 4.8MB | 197ms | 0ms | dmd 2.111.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 321ms | 12ms | 45.7MB | 303ms | 3ms | ldc2 1.40.1 |
d | 1.d | 359ms | 12ms | 79.2MB | 347ms | 0ms | dmd 2.111.0 |
codon | 1-m.py | 455ms | 9.2ms | 47.7MB | 757ms | 0ms | codon 0.18.2 |
d | 2.d | 849ms | 1.3ms | 47.5MB | 830ms | 10ms | ldc2 1.40.1 |
d | 2.d | 1178ms | 13ms | 51.8MB | 1160ms | 10ms | dmd 2.111.0 |
codon | 2.py | 1561ms | 6.3ms | 100.8MB | 1870ms | 23ms | codon 0.18.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 62ms | 2.0ms | 15.7MB | 50ms | 0ms | ldc2 1.40.1 |
d | 1.d | 75ms | 1.6ms | 25.5MB | 63ms | 0ms | dmd 2.111.0 |
codon | 1-m.py | 126ms | 3.4ms | 18.4MB | 433ms | 0ms | codon 0.18.2 |
d | 2.d | 210ms | 2.6ms | 17.6MB | 197ms | 0ms | ldc2 1.40.1 |
d | 2.d | 292ms | 1.6ms | 19.6MB | 277ms | 0ms | dmd 2.111.0 |
codon | 2-m.py | 398ms | 2.8ms | 27.2MB | 707ms | 10ms | codon 0.18.2 |