Current benchmark data was generated on Mon Dec 30 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 | 500ms | 1.4ms | 1.3MB | 483ms | 0ms | v/clang 0.4.9 |
v | 1.v | 538ms | 4.2ms | 2.1MB | 523ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 543ms | 3.5ms | 3.4MB | 413ms | 110ms | crystal 1.14.0 |
crystal | 1.cr | 731ms | 4.9ms | 14.7MB | 607ms | 107ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 52ms | 0.3ms | 1.3MB | 43ms | 0ms | v/clang 0.4.9 |
v | 1.v | 57ms | 2.4ms | 2.1MB | 50ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 58ms | 1.3ms | 3.4MB | 33ms | 13ms | crystal 1.14.0 |
crystal | 1.cr | 77ms | 0.9ms | 4.5MB | 50ms | 13ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 36ms | 1.6ms | 3.1MB | 27ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 65ms | 2.3ms | 3.1MB | 53ms | 0ms | crystal 1.14.0 |
v | 1.v | 241ms | 4.0ms | 1.3MB | 227ms | 0ms | v/clang 0.4.9 |
v | 1.v | 258ms | 6.4ms | 2.1MB | 247ms | 0ms | v/clang+gc 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 99ms | 1.9ms | 3.1MB | 90ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 190ms | 11ms | 3.1MB | 180ms | 0ms | crystal 1.14.0 |
v | 1.v | 709ms | 3.2ms | 1.3MB | 697ms | 0ms | v/clang 0.4.9 |
v | 1.v | 765ms | 2.4ms | 2.1MB | 753ms | 0ms | v/clang+gc 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 18ms | 1.3ms | 3.0MB | 10ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 30ms | 1.6ms | 3.0MB | 20ms | 0ms | crystal 1.14.0 |
v | 1.v | 89ms | 0.4ms | 1.3MB | 80ms | 0ms | v/clang 0.4.9 |
v | 1.v | 99ms | 0.8ms | 2.1MB | 90ms | 0ms | v/clang+gc 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 309ms | 0.5ms | 1.6MB | 300ms | 0ms | v/clang 0.4.9 |
v | 1.v | 311ms | 1.8ms | 2.3MB | 300ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 341ms | 1.2ms | 3.4MB | 330ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 343ms | 3.1ms | 3.4MB | 333ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 295ms | 10ms | 40.4MB | 277ms | 0ms | v/clang 0.4.9 |
v | 1.v | 310ms | 5.8ms | 60.6MB | 297ms | 0ms | v/clang+gc 0.4.9 |
v | 2.v | 332ms | 2.1ms | 6.9MB | 320ms | 0ms | v/clang+gc 0.4.9 |
v | 2.v | 332ms | 3.8ms | 6.1MB | 320ms | 0ms | v/clang 0.4.9 |
crystal | 2.cr | 349ms | 5.0ms | 8.4MB | 333ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 374ms | 7.6ms | 62.7MB | 360ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 60ms | 1.9ms | 11.9MB | 50ms | 0ms | v/clang+gc 0.4.9 |
v | 1.v | 61ms | 2.4ms | 11.0MB | 50ms | 0ms | v/clang 0.4.9 |
crystal | 1.cr | 77ms | 0.7ms | 13.3MB | 67ms | 0ms | crystal 1.14.0 |
v | 2.v | 82ms | 1.5ms | 2.4MB | 73ms | 0ms | v/clang 0.4.9 |
v | 2.v | 83ms | 1.6ms | 3.1MB | 70ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 86ms | 1.2ms | 4.6MB | 77ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 3905ms | 37ms | 4.6MB | 3897ms | 0ms | crystal 1.14.0 |
v | 1.v | timeout | 0.0ms | 1.6MB | 4990ms | 0ms | v/clang 0.4.9 |
v | 1.v | timeout | 0.0ms | 2.8MB | 4990ms | 0ms | v/clang+gc 0.4.9 |