Current benchmark data was generated on Wed Jan 22 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.d | timeout | 0.0ms | 16.8MB | 4967ms | 20ms | dmd 2.109.1 |
d | 1.d | timeout | 0.0ms | 15.4MB | 4970ms | 17ms | ldc2 1.40.0 |
nim | 1.nim | timeout | 0.0ms | 545.4MB | 2453ms | 2093ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 553.8MB | 2483ms | 2057ms | nim/clang 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 1.d | 1001ms | 2.3ms | 8.4MB | 967ms | 23ms | ldc2 1.40.0 |
d | 1.d | 1314ms | 23ms | 10.5MB | 1290ms | 13ms | dmd 2.109.1 |
nim | 1.nim | 4399ms | 8.7ms | 518.7MB | 2090ms | 1880ms | nim/clang 2.2.0 |
nim | 1.nim | 4558ms | 9.6ms | 518.3MB | 2237ms | 1890ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 185ms | 2.3ms | 1.5MB | 177ms | 0ms | nim 2.2.0 |
d | 1.d | 195ms | 0.9ms | 48.8MB | 170ms | 10ms | ldc2 1.40.0 |
nim | 2.nim | 238ms | 0.8ms | 1.8MB | 227ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 578ms | 7.8ms | 1.8MB | 453ms | 110ms | nim/clang 2.2.0 |
nim | 1.nim | 599ms | 1.3ms | 1.5MB | 473ms | 110ms | nim 2.2.0 |
d | 1.d | 621ms | 2.2ms | 43.8MB | 610ms | 3ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 20ms | 0.3ms | 1.5MB | 10ms | 0ms | nim 2.2.0 |
d | 1.d | 24ms | 0.4ms | 12.1MB | 17ms | 0ms | ldc2 1.40.0 |
nim | 2.nim | 26ms | 0.3ms | 1.8MB | 13ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 60ms | 0.5ms | 1.8MB | 37ms | 10ms | nim/clang 2.2.0 |
nim | 1.nim | 62ms | 0.1ms | 1.5MB | 40ms | 10ms | nim 2.2.0 |
d | 1.d | 67ms | 1.3ms | 12.0MB | 57ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 110ms | 1.6ms | 1.6MB | 100ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 114ms | 0.5ms | 1.4MB | 103ms | 0ms | nim 2.2.0 |
d | 1.d | 124ms | 1.2ms | 5.9MB | 113ms | 0ms | ldc2 1.40.0 |
d | 1.d | 180ms | 2.6ms | 7.9MB | 170ms | 7ms | dmd 2.109.1 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4990ms | 0ms | nim/clang 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 323ms | 4.9ms | 1.6MB | 313ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 337ms | 4.4ms | 1.4MB | 323ms | 0ms | nim 2.2.0 |
d | 1.d | 359ms | 6.0ms | 5.8MB | 357ms | 0ms | ldc2 1.40.0 |
d | 1.d | 521ms | 2.1ms | 7.8MB | 517ms | 7ms | dmd 2.109.1 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.2.0 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4987ms | 0ms | nim/clang 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 49ms | 1.1ms | 1.5MB | 40ms | 0ms | nim/clang 2.2.0 |
nim | 2.nim | 50ms | 0.3ms | 1.3MB | 40ms | 0ms | nim 2.2.0 |
d | 1.d | 55ms | 1.6ms | 5.8MB | 50ms | 0ms | ldc2 1.40.0 |
d | 1.d | 88ms | 15ms | 5.9MB | 67ms | 33ms | dmd 2.109.1 |
nim | 1.nim | 493ms | 4.9ms | 1.5MB | 480ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 519ms | 32ms | 1.3MB | 510ms | 0ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 319ms | 2.1ms | 1.8MB | 310ms | 0ms | nim 2.2.0 |
nim | 2.nim | 341ms | 2.4ms | 2.0MB | 330ms | 0ms | nim/clang 2.2.0 |
d | 1.d | 359ms | 0.2ms | 2.9MB | 347ms | 0ms | ldc2 1.40.0 |
d | 2.d | 359ms | 1.0ms | 2.9MB | 350ms | 0ms | ldc2 1.40.0 |
d | 1.d | 679ms | 2.8ms | 4.6MB | 667ms | 0ms | dmd 2.109.1 |
d | 2.d | 2012ms | 3.9ms | 4.6MB | 2000ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 35ms | 1.0ms | 1.8MB | 27ms | 0ms | nim 2.2.0 |
nim | 2.nim | 36ms | 0.6ms | 2.0MB | 30ms | 0ms | nim/clang 2.2.0 |
d | 1.d | 38ms | 0.3ms | 2.9MB | 27ms | 0ms | ldc2 1.40.0 |
d | 2.d | 39ms | 0.6ms | 2.9MB | 30ms | 0ms | ldc2 1.40.0 |
d | 1.d | 71ms | 1.1ms | 4.6MB | 60ms | 0ms | dmd 2.109.1 |
d | 2.d | 204ms | 0.8ms | 4.6MB | 190ms | 0ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 276ms | 7.5ms | 41.5MB | 263ms | 0ms | nim 2.2.0 |
d | 1.d | 299ms | 2.9ms | 43.7MB | 287ms | 0ms | ldc2 1.40.0 |
d | 1.d | 313ms | 4.7ms | 77.2MB | 297ms | 0ms | dmd 2.109.1 |
nim | 1.nim | 313ms | 4.8ms | 41.8MB | 297ms | 0ms | nim/clang 2.2.0 |
d | 2.d | 838ms | 3.1ms | 47.7MB | 817ms | 7ms | ldc2 1.40.0 |
d | 2.d | 1161ms | 2.2ms | 49.3MB | 1140ms | 3ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 51ms | 1.2ms | 11.5MB | 40ms | 0ms | nim 2.2.0 |
d | 1.d | 60ms | 1.3ms | 13.7MB | 50ms | 0ms | ldc2 1.40.0 |
nim | 1.nim | 61ms | 1.1ms | 11.7MB | 50ms | 0ms | nim/clang 2.2.0 |
d | 1.d | 67ms | 2.6ms | 24.2MB | 57ms | 0ms | dmd 2.109.1 |
d | 2.d | 208ms | 1.5ms | 15.6MB | 197ms | 0ms | ldc2 1.40.0 |
d | 2.d | 291ms | 1.5ms | 17.8MB | 277ms | 3ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
d | 3.d | 574ms | 1.2ms | 171.6MB | 757ms | 23ms | ldc2 1.40.0 |
d | 3.d | 1293ms | 4.0ms | 174.3MB | 1480ms | 20ms | dmd 2.109.1 |
nim | 1.nim | 1621ms | 2.5ms | 151.6MB | 1577ms | 23ms | nim/clang 2.2.0 |
nim | 1.nim | 1646ms | 1.9ms | 152.0MB | 1603ms | 23ms | nim 2.2.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 3573ms | 2.3ms | 1.6MB | 3560ms | 0ms | nim/clang 2.2.0 |
d | 1.d | 3589ms | 9.3ms | 4.0MB | 3573ms | 7ms | ldc2 1.40.0 |
nim | 1.nim | 3597ms | 4.0ms | 1.4MB | 3587ms | 0ms | nim 2.2.0 |
d | 1.d | 3616ms | 21ms | 8.2MB | 3607ms | 0ms | dmd 2.109.1 |