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 |
---|---|---|---|---|---|---|---|
v | 1.v | 507ms | 0.9ms | 1.3MB | 500ms | 0ms | v/clang 0.4.4 |
v | 1.v | 516ms | 7.0ms | 2.1MB | 507ms | 0ms | v/clang+gc 0.4.4 |
crystal | 2.cr | 530ms | 2.1ms | 3.8MB | 430ms | 83ms | crystal 1.11.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 |
---|---|---|---|---|---|---|---|
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 |
v | 1.v | 251ms | 3.2ms | 1.4MB | 240ms | 0ms | v/clang 0.4.4 |
v | 1.v | 261ms | 2.8ms | 2.3MB | 250ms | 0ms | v/clang+gc 0.4.4 |
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 |
v | 1.v | 757ms | 3.5ms | 1.3MB | 750ms | 0ms | v/clang 0.4.4 |
v | 1.v | 769ms | 3.9ms | 2.3MB | 757ms | 0ms | v/clang+gc 0.4.4 |
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 |
v | 1.v | 91ms | 0.5ms | 1.3MB | 80ms | 0ms | v/clang 0.4.4 |
v | 1.v | 100ms | 2.0ms | 2.1MB | 90ms | 0ms | v/clang+gc 0.4.4 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 312ms | 0.3ms | 1.6MB | 300ms | 0ms | v/clang 0.4.4 |
v | 1.v | 328ms | 29ms | 2.4MB | 317ms | 0ms | v/clang+gc 0.4.4 |
crystal | 1.cr | 342ms | 0.8ms | 3.5MB | 330ms | 0ms | crystal 1.11.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 |
---|---|---|---|---|---|---|---|
v | 2.v | 328ms | 2.8ms | 6.9MB | 317ms | 0ms | v/clang+gc 0.4.4 |
v | 2.v | 330ms | 3.2ms | 6.1MB | 317ms | 0ms | v/clang 0.4.4 |
v | 1.v | 343ms | 6.3ms | 40.3MB | 320ms | 5ms | v/clang 0.4.4 |
v | 1.v | 343ms | 10ms | 41.2MB | 333ms | 0ms | v/clang+gc 0.4.4 |
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 |
---|---|---|---|---|---|---|---|
v | 1.v | 62ms | 1.0ms | 11.9MB | 50ms | 0ms | v/clang+gc 0.4.4 |
v | 1.v | 65ms | 1.7ms | 11.0MB | 50ms | 0ms | v/clang 0.4.4 |
crystal | 1.cr | 80ms | 1.2ms | 13.3MB | 70ms | 0ms | crystal 1.11.2 |
v | 2.v | 81ms | 1.2ms | 2.5MB | 70ms | 0ms | v/clang 0.4.4 |
v | 2.v | 82ms | 1.1ms | 3.1MB | 70ms | 0ms | v/clang+gc 0.4.4 |
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 |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 3743ms | 15ms | 4.8MB | 3727ms | 0ms | crystal 1.11.2 |
v | 1.v | timeout | 0.0ms | 1.8MB | 4990ms | 0ms | v/clang 0.4.4 |
v | 1.v | timeout | 0.0ms | 3.0MB | 4987ms | 0ms | v/clang+gc 0.4.4 |