Current benchmark data was generated on Thu Feb 01 2024, 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 |
---|---|---|---|---|---|---|---|
nim | 2.nim | 188ms | 3.5ms | 1.5MB | 177ms | 0ms | nim 2.0.2 |
nim | 2.nim | 239ms | 3.2ms | 1.8MB | 227ms | 0ms | nim/clang 2.0.2 |
crystal | 2.cr | 530ms | 2.1ms | 3.8MB | 430ms | 83ms | crystal 1.11.2 |
nim | 1.nim | 549ms | 1.1ms | 1.8MB | 447ms | 87ms | nim/clang 2.0.2 |
nim | 1.nim | 573ms | 0.7ms | 1.5MB | 463ms | 90ms | nim 2.0.2 |
crystal | 1.cr | 695ms | 1.7ms | 14.9MB | 580ms | 100ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 20ms | 0.4ms | 1.5MB | 10ms | 0ms | nim 2.0.2 |
nim | 2.nim | 26ms | 0.6ms | 1.6MB | 20ms | 0ms | nim/clang 2.0.2 |
crystal | 2.cr | 57ms | 1.0ms | 3.6MB | 40ms | 3ms | crystal 1.11.2 |
nim | 1.nim | 58ms | 0.6ms | 1.8MB | 43ms | 0ms | nim/clang 2.0.2 |
nim | 1.nim | 61ms | 1.0ms | 1.5MB | 43ms | 7ms | nim 2.0.2 |
crystal | 1.cr | 74ms | 1.2ms | 4.8MB | 57ms | 3ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 38ms | 0.7ms | 3.3MB | 30ms | 0ms | crystal 1.11.2 |
crystal | 1.cr | 67ms | 1.0ms | 3.3MB | 57ms | 0ms | crystal 1.11.2 |
nim | 2.nim | 108ms | 1.5ms | 1.6MB | 100ms | 0ms | nim/clang 2.0.2 |
nim | 2.nim | 109ms | 2.7ms | 1.4MB | 97ms | 0ms | nim 2.0.2 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.0.2 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4990ms | 0ms | nim/clang 2.0.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 106ms | 1.1ms | 3.3MB | 97ms | 0ms | crystal 1.11.2 |
crystal | 1.cr | 188ms | 1.0ms | 3.3MB | 180ms | 0ms | crystal 1.11.2 |
nim | 2.nim | 316ms | 0.4ms | 1.9MB | 307ms | 0ms | nim/clang 2.0.2 |
nim | 2.nim | 323ms | 4.4ms | 1.4MB | 313ms | 0ms | nim 2.0.2 |
nim | 1.nim | timeout | 0.0ms | 1.3MB | 4990ms | 0ms | nim 2.0.2 |
nim | 1.nim | timeout | 0.0ms | 1.5MB | 4990ms | 0ms | nim/clang 2.0.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 20ms | 1.2ms | 3.1MB | 10ms | 0ms | crystal 1.11.2 |
crystal | 1.cr | 35ms | 1.1ms | 3.1MB | 27ms | 0ms | crystal 1.11.2 |
nim | 2.nim | 48ms | 0.6ms | 1.5MB | 40ms | 0ms | nim/clang 2.0.2 |
nim | 2.nim | 49ms | 0.7ms | 1.3MB | 40ms | 0ms | nim 2.0.2 |
nim | 1.nim | 536ms | 10ms | 1.5MB | 523ms | 0ms | nim/clang 2.0.2 |
nim | 1.nim | 536ms | 8.6ms | 1.3MB | 523ms | 0ms | nim 2.0.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 318ms | 1.0ms | 1.8MB | 310ms | 0ms | nim 2.0.2 |
crystal | 1.cr | 342ms | 0.8ms | 3.5MB | 330ms | 0ms | crystal 1.11.2 |
nim | 2.nim | 343ms | 3.5ms | 2.0MB | 333ms | 0ms | nim/clang 2.0.2 |
crystal | 2.cr | 348ms | 10ms | 3.5MB | 337ms | 0ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 2.nim | 34ms | 0.5ms | 1.8MB | 23ms | 0ms | nim 2.0.2 |
nim | 2.nim | 36ms | 0.1ms | 2.0MB | 30ms | 0ms | nim/clang 2.0.2 |
crystal | 2.cr | 37ms | 0.5ms | 3.5MB | 27ms | 0ms | crystal 1.11.2 |
crystal | 1.cr | 39ms | 1.2ms | 3.6MB | 30ms | 0ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 282ms | 2.6ms | 41.5MB | 270ms | 0ms | nim 2.0.2 |
nim | 1.nim | 351ms | 9.9ms | 41.8MB | 337ms | 0ms | nim/clang 2.0.2 |
crystal | 1.cr | 380ms | 2.1ms | 42.7MB | 363ms | 0ms | crystal 1.11.2 |
crystal | 2.cr | 381ms | 2.1ms | 8.4MB | 370ms | 0ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 56ms | 1.3ms | 11.5MB | 47ms | 0ms | nim 2.0.2 |
nim | 1.nim | 65ms | 1.0ms | 11.8MB | 53ms | 0ms | nim/clang 2.0.2 |
crystal | 1.cr | 80ms | 1.2ms | 13.3MB | 70ms | 0ms | crystal 1.11.2 |
crystal | 2.cr | 93ms | 0.9ms | 4.8MB | 80ms | 0ms | crystal 1.11.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
nim | 1.nim | 3574ms | 1.9ms | 1.6MB | 3567ms | 0ms | nim/clang 2.0.2 |
nim | 1.nim | 3591ms | 12ms | 1.4MB | 3580ms | 0ms | nim 2.0.2 |
crystal | 1.cr | 3743ms | 15ms | 4.8MB | 3727ms | 0ms | crystal 1.11.2 |