Current benchmark data was generated on Sun Jul 13 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 |
---|---|---|---|---|---|---|---|
v | 1.v | 503ms | 5.1ms | 1.3MB | 497ms | 0ms | v/clang 0.4.11 |
v | 1.v | 522ms | 1.0ms | 2.1MB | 510ms | 0ms | v/clang+gc 0.4.11 |
crystal | 2.cr | 534ms | 3.4ms | 3.6MB | 443ms | 73ms | crystal 1.16.3 |
crystal | 1.cr | 676ms | 1.2ms | 14.6MB | 570ms | 93ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 54ms | 1.8ms | 1.3MB | 47ms | 0ms | v/clang 0.4.11 |
v | 1.v | 56ms | 2.5ms | 2.1MB | 50ms | 0ms | v/clang+gc 0.4.11 |
crystal | 2.cr | 57ms | 1.2ms | 3.5MB | 40ms | 3ms | crystal 1.16.3 |
crystal | 1.cr | 73ms | 2.0ms | 4.4MB | 57ms | 3ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 35ms | 0.6ms | 3.0MB | 30ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 65ms | 0.7ms | 3.0MB | 60ms | 0ms | crystal 1.16.3 |
v | 1.v | 259ms | 3.4ms | 2.1MB | 250ms | 0ms | v/clang+gc 0.4.11 |
v | 1.v | 267ms | 5.4ms | 1.3MB | 257ms | 0ms | v/clang 0.4.11 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 101ms | 1.8ms | 3.0MB | 90ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 186ms | 0.4ms | 3.0MB | 180ms | 0ms | crystal 1.16.3 |
v | 1.v | 770ms | 4.1ms | 2.1MB | 760ms | 0ms | v/clang+gc 0.4.11 |
v | 1.v | 792ms | 5.6ms | 1.3MB | 787ms | 0ms | v/clang 0.4.11 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 18ms | 0.7ms | 3.0MB | 10ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 30ms | 1.1ms | 3.0MB | 20ms | 0ms | crystal 1.16.3 |
v | 1.v | 91ms | 2.0ms | 1.3MB | 83ms | 0ms | v/clang 0.4.11 |
v | 1.v | 100ms | 1.6ms | 2.1MB | 93ms | 0ms | v/clang+gc 0.4.11 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 312ms | 1.5ms | 1.6MB | 300ms | 0ms | v/clang 0.4.11 |
v | 1.v | 312ms | 1.3ms | 2.3MB | 300ms | 0ms | v/clang+gc 0.4.11 |
crystal | 2.cr | 343ms | 3.1ms | 3.3MB | 333ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 347ms | 1.5ms | 3.3MB | 337ms | 0ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 33ms | 0.0ms | 1.6MB | 30ms | 0ms | v/clang 0.4.11 |
v | 1.v | 34ms | 0.2ms | 2.3MB | 27ms | 0ms | v/clang+gc 0.4.11 |
crystal | 1.cr | 37ms | 0.6ms | 3.3MB | 30ms | 0ms | crystal 1.16.3 |
crystal | 2.cr | 38ms | 0.9ms | 3.3MB | 30ms | 0ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 321ms | 15ms | 40.3MB | 307ms | 0ms | v/clang 0.4.11 |
v | 1.v | 323ms | 7.3ms | 41.2MB | 310ms | 0ms | v/clang+gc 0.4.11 |
v | 2.v | 329ms | 1.3ms | 6.1MB | 320ms | 0ms | v/clang 0.4.11 |
v | 2.v | 331ms | 4.8ms | 6.9MB | 323ms | 0ms | v/clang+gc 0.4.11 |
crystal | 2.cr | 351ms | 3.7ms | 8.3MB | 340ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 418ms | 6.0ms | 43.0MB | 407ms | 0ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 61ms | 2.9ms | 11.9MB | 50ms | 0ms | v/clang+gc 0.4.11 |
v | 1.v | 65ms | 0.6ms | 11.0MB | 57ms | 0ms | v/clang 0.4.11 |
v | 2.v | 82ms | 1.5ms | 3.1MB | 73ms | 0ms | v/clang+gc 0.4.11 |
v | 2.v | 83ms | 2.1ms | 2.4MB | 73ms | 0ms | v/clang 0.4.11 |
crystal | 2.cr | 87ms | 1.6ms | 4.5MB | 80ms | 0ms | crystal 1.16.3 |
crystal | 1.cr | 92ms | 2.2ms | 13.1MB | 80ms | 0ms | crystal 1.16.3 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 3757ms | 13ms | 4.5MB | 3747ms | 0ms | crystal 1.16.3 |
v | 1.v | timeout | 0.0ms | 1.6MB | 4990ms | 0ms | v/clang 0.4.11 |
v | 1.v | timeout | 0.0ms | 2.8MB | 4990ms | 0ms | v/clang+gc 0.4.11 |