Current benchmark data was generated on Tue Dec 31 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 | 485ms | 7.6ms | 1.3MB | 473ms | 0ms | v/clang 0.4.9 |
v | 1.v | 510ms | 4.4ms | 2.1MB | 497ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 515ms | 7.3ms | 3.4MB | 413ms | 90ms | crystal 1.14.0 |
crystal | 1.cr | 693ms | 6.0ms | 14.7MB | 553ms | 127ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 50ms | 0.4ms | 1.3MB | 40ms | 0ms | v/clang 0.4.9 |
v | 1.v | 53ms | 0.4ms | 2.1MB | 43ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 55ms | 0.3ms | 3.4MB | 33ms | 10ms | crystal 1.14.0 |
crystal | 1.cr | 72ms | 1.1ms | 4.5MB | 50ms | 10ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 35ms | 1.9ms | 3.1MB | 23ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 62ms | 2.8ms | 3.1MB | 50ms | 0ms | crystal 1.14.0 |
v | 1.v | 246ms | 1.6ms | 2.1MB | 237ms | 0ms | v/clang+gc 0.4.9 |
v | 1.v | 252ms | 7.7ms | 1.3MB | 243ms | 0ms | v/clang 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 94ms | 2.9ms | 3.1MB | 83ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 173ms | 1.9ms | 3.1MB | 163ms | 0ms | crystal 1.14.0 |
v | 1.v | 730ms | 2.4ms | 2.1MB | 720ms | 0ms | v/clang+gc 0.4.9 |
v | 1.v | 769ms | 8.2ms | 1.3MB | 760ms | 0ms | v/clang 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 0-unsafe.cr | 17ms | 0.4ms | 3.0MB | 10ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 28ms | 0.6ms | 3.0MB | 20ms | 0ms | crystal 1.14.0 |
v | 1.v | 85ms | 1.3ms | 1.3MB | 73ms | 0ms | v/clang 0.4.9 |
v | 1.v | 97ms | 1.5ms | 2.1MB | 87ms | 0ms | v/clang+gc 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 296ms | 4.6ms | 2.3MB | 283ms | 0ms | v/clang+gc 0.4.9 |
v | 1.v | 298ms | 1.3ms | 1.6MB | 287ms | 0ms | v/clang 0.4.9 |
crystal | 1.cr | 327ms | 5.3ms | 3.4MB | 313ms | 0ms | crystal 1.14.0 |
crystal | 2.cr | 327ms | 8.1ms | 3.4MB | 313ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 272ms | 1.7ms | 40.3MB | 257ms | 0ms | v/clang 0.4.9 |
v | 1.v | 288ms | 6.7ms | 60.7MB | 273ms | 0ms | v/clang+gc 0.4.9 |
v | 2.v | 311ms | 1.4ms | 6.2MB | 300ms | 0ms | v/clang 0.4.9 |
v | 2.v | 318ms | 2.2ms | 6.9MB | 307ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 327ms | 5.2ms | 8.4MB | 313ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 348ms | 6.2ms | 43.1MB | 337ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
v | 1.v | 57ms | 3.8ms | 11.0MB | 50ms | 0ms | v/clang 0.4.9 |
v | 1.v | 59ms | 0.8ms | 19.9MB | 50ms | 0ms | v/clang+gc 0.4.9 |
crystal | 1.cr | 74ms | 2.1ms | 13.3MB | 60ms | 0ms | crystal 1.14.0 |
v | 2.v | 77ms | 1.9ms | 2.4MB | 70ms | 0ms | v/clang 0.4.9 |
v | 2.v | 77ms | 1.6ms | 3.1MB | 70ms | 0ms | v/clang+gc 0.4.9 |
crystal | 2.cr | 82ms | 1.0ms | 4.6MB | 70ms | 0ms | crystal 1.14.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 3700ms | 16ms | 4.6MB | 3683ms | 3ms | crystal 1.14.0 |
v | 1.v | 4853ms | 3.5ms | 1.6MB | 4843ms | 0ms | v/clang 0.4.9 |
v | 1.v | 4929ms | 9.5ms | 2.8MB | 4917ms | 0ms | v/clang+gc 0.4.9 |