Current benchmark data was generated on Sat Jan 28 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 |
---|---|---|---|---|---|---|---|
v | 1.v | 651ms | 2.0ms | 2.0MB | 633ms | 0ms | v/clang+gc 0.3.2 |
v | 1.v | 653ms | 3.2ms | 2.0MB | 637ms | 0ms | v/clang 0.3.2 |
crystal | 2.cr | 832ms | 0.4ms | 3.2MB | 743ms | 70ms | crystal 1.7.2 |
crystal | 1.cr | 1067ms | 1.3ms | 14.6MB | 940ms | 110ms | crystal 1.7.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 55ms | 0.2ms | 3.0MB | 47ms | 0ms | crystal 1.7.2 |
crystal | 1.cr | 97ms | 1.2ms | 3.0MB | 87ms | 0ms | crystal 1.7.2 |
v | 1.v | 403ms | 1.5ms | 2.2MB | 390ms | 0ms | v/clang+gc 0.3.2 |
v | 1.v | 424ms | 0.3ms | 2.2MB | 410ms | 0ms | v/clang 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 160ms | 1.7ms | 2.9MB | 147ms | 0ms | crystal 1.7.2 |
crystal | 1.cr | 281ms | 0.7ms | 2.9MB | 270ms | 0ms | crystal 1.7.2 |
v | 1.v | 1205ms | 2.4ms | 2.3MB | 1193ms | 0ms | v/clang+gc 0.3.2 |
v | 1.v | 1265ms | 1.6ms | 2.3MB | 1257ms | 0ms | v/clang 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 27ms | 0.8ms | 2.9MB | 20ms | 0ms | crystal 1.7.2 |
crystal | 1.cr | 49ms | 0.6ms | 3.0MB | 40ms | 0ms | crystal 1.7.2 |
v | 1.v | 134ms | 1.0ms | 2.3MB | 123ms | 0ms | v/clang+gc 0.3.2 |
v | 1.v | 140ms | 0.3ms | 2.3MB | 130ms | 0ms | v/clang 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 513ms | 0.5ms | 2.9MB | 500ms | 0ms | crystal 1.7.2 |
crystal | 2.cr | 534ms | 1.1ms | 2.8MB | 527ms | 0ms | crystal 1.7.2 |
v | 1.v | 871ms | 0.8ms | 2.3MB | 860ms | 0ms | v/clang 0.3.2 |
v | 1.v | 879ms | 6.2ms | 2.3MB | 863ms | 0ms | v/clang+gc 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 2.cr | 458ms | 1.3ms | 7.7MB | 447ms | 0ms | crystal 1.7.2 |
v | 2.v | 507ms | 3.1ms | 11.0MB | 497ms | 0ms | v/clang 0.3.2 |
v | 2.v | 510ms | 3.1ms | 10.7MB | 493ms | 3ms | v/clang+gc 0.3.2 |
crystal | 1.cr | 605ms | 17ms | 42.2MB | 583ms | 3ms | crystal 1.7.2 |
v | 1.v | 1164ms | 113ms | 41.1MB | 1143ms | 7ms | v/clang+gc 0.3.2 |
v | 1.v | 1352ms | 95ms | 41.2MB | 1330ms | 7ms | v/clang 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 2.cr | 106ms | 0.9ms | 3.9MB | 93ms | 0ms | crystal 1.7.2 |
v | 2.v | 116ms | 0.4ms | 4.0MB | 107ms | 0ms | v/clang+gc 0.3.2 |
v | 2.v | 117ms | 0.7ms | 4.1MB | 107ms | 0ms | v/clang 0.3.2 |
v | 1.v | 122ms | 1.8ms | 20.0MB | 110ms | 0ms | v/clang+gc 0.3.2 |
v | 1.v | 129ms | 2.2ms | 20.8MB | 113ms | 0ms | v/clang 0.3.2 |
crystal | 1.cr | 137ms | 0.7ms | 12.8MB | 127ms | 0ms | crystal 1.7.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 2582ms | 15ms | 7.4MB | 2553ms | 13ms | crystal 1.7.2 |
v | 1.v | 3901ms | 88ms | 3.2MB | 3873ms | 10ms | v/clang+gc 0.3.2 |
v | 1.v | timeout | 0.0ms | 4.0MB | 4980ms | 7ms | v/clang 0.3.2 |
v | 2.v | timeout | 0.0ms | 3.3MB | 4983ms | 7ms | v/clang+gc 0.3.2 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | timeout | 0.0ms | 4.1MB | 4987ms | 0ms | crystal 1.7.2 |
v | 1.v | timeout | 0.0ms | 3.0MB | 4983ms | 0ms | v/clang 0.3.2 |
v | 1.v | timeout | 0.0ms | 3.1MB | 4987ms | 0ms | v/clang+gc 0.3.2 |