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 |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 1344ms | 19ms | 64.2MB | 1317ms | 10ms | crystal 1.14.0 |
wasm | 5.rs | 1721ms | 55ms | 34.9MB | 1707ms | 0ms | wasmtime 28.0.0 |
wasm | 3.rs | 1751ms | 19ms | 52.9MB | 1727ms | 13ms | wasmtime 28.0.0 |
wasm | 4.rs | 1758ms | 1.3ms | 34.9MB | 1733ms | 10ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 105ms | 3.9ms | 11.1MB | 93ms | 0ms | crystal 1.14.0 |
wasm | 3.rs | 169ms | 2.4ms | 22.9MB | 153ms | 3ms | wasmtime 28.0.0 |
wasm | 5.rs | 170ms | 5.5ms | 21.0MB | 157ms | 3ms | wasmtime 28.0.0 |
wasm | 4.rs | 172ms | 2.6ms | 21.2MB | 157ms | 0ms | wasmtime 28.0.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 |
wasm | 1.rs | 81ms | 0.4ms | 19.2MB | 67ms | 3ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
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 |
wasm | 1.rs | 399ms | 1.0ms | 20.8MB | 387ms | 0ms | wasmtime 28.0.0 |
wasm | 2.rs | 576ms | 0.3ms | 18.8MB | 563ms | 0ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 2.cr | 37ms | 0.3ms | 3.4MB | 30ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 37ms | 0.7ms | 3.4MB | 30ms | 0ms | crystal 1.14.0 |
wasm | 1.rs | 47ms | 0.6ms | 19.0MB | 40ms | 0ms | wasmtime 28.0.0 |
wasm | 2.rs | 66ms | 0.7ms | 18.8MB | 57ms | 0ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
wasm | 2.rs | 330ms | 4.0ms | 24.1MB | 317ms | 0ms | wasmtime 28.0.0 |
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 |
wasm | 1.rs | 463ms | 4.8ms | 60.0MB | 443ms | 3ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
crystal | 1.cr | 77ms | 0.7ms | 13.3MB | 67ms | 0ms | crystal 1.14.0 |
wasm | 2.rs | 85ms | 0.7ms | 22.2MB | 70ms | 3ms | wasmtime 28.0.0 |
crystal | 2.cr | 86ms | 1.2ms | 4.6MB | 77ms | 0ms | crystal 1.14.0 |
wasm | 1.rs | 97ms | 0.4ms | 30.7MB | 80ms | 3ms | wasmtime 28.0.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
wasm | 2.rs | 3583ms | 2.7ms | 20.7MB | 3567ms | 0ms | wasmtime 28.0.0 |
crystal | 1.cr | 3905ms | 37ms | 4.6MB | 3897ms | 0ms | crystal 1.14.0 |
wasm | 7.rs | 4871ms | 7.3ms | 19.1MB | 4857ms | 0ms | wasmtime 28.0.0 |