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 |
---|---|---|---|---|---|---|---|
d | 1-im.d | 377ms | 1.3ms | 5.1MB | 1410ms | 0ms | ldc2 1.36.0 |
rust | 3-im.rs | 399ms | 1.4ms | 6.0MB | 1533ms | 3ms | rustc 1.75.0 |
cpp | 1-im.cpp | 404ms | 1.1ms | 4.7MB | 1547ms | 0ms | g++ 11.4.0 |
cpp | 1-im.cpp | 407ms | 3.0ms | 7.9MB | 1560ms | 7ms | clang++ 14.0.0-1ubuntu1.1 |
rust | 5-m.rs | 604ms | 7.8ms | 6.0MB | 2313ms | 3ms | rustc 1.75.0 |
zig | 2-m.zig | 639ms | 6.1ms | 3.5MB | 2410ms | 0ms | zig 0.12.0-dev.2341+92211135f |
rust | 2-im.rs | 678ms | 51ms | 6.0MB | 2467ms | 0ms | rustc 1.75.0 |
go | 3-m.go | 720ms | 0.8ms | 3.3MB | 2777ms | 0ms | go 1.21.6 |
java | 1-m.java | 888ms | 5.5ms | 97.2MB | 3257ms | 43ms | graal/jvm 17.0.8 |
java | 1-m.java | 946ms | 34ms | 48.5MB | 3513ms | 23ms | openjdk 21 |
java | 1-m.java | 989ms | 11ms | 49.0MB | 3650ms | 17ms | openjdk 23 |
java | 1-m.java | 1010ms | 36ms | 47.9MB | 3313ms | 133ms | openjdk/zgc 21 |
d | 2-im.d | 1098ms | 3.6ms | 5.1MB | 4300ms | 0ms | ldc2 1.36.0 |
rust | 3-i.rs | 1482ms | 11ms | 2.0MB | 1473ms | 0ms | rustc 1.75.0 |
d | 1-i.d | 1487ms | 3.8ms | 2.9MB | 1477ms | 0ms | ldc2 1.36.0 |
rust | 1-m.rs | 1577ms | 16ms | 6.0MB | 6093ms | 3ms | rustc 1.75.0 |
zig | 3-i.zig | 1769ms | 3.5ms | 1.1MB | 1760ms | 0ms | zig 0.12.0-dev.2341+92211135f |
rust | 2-i.rs | 1773ms | 2.2ms | 1.9MB | 1760ms | 0ms | rustc 1.75.0 |
zig | 2.zig | 1999ms | 9.9ms | 1.1MB | 1990ms | 0ms | zig 0.12.0-dev.2341+92211135f |
v | 1.v | 2185ms | 9.8ms | 1.9MB | 2170ms | 0ms | v/clang+gc 0.4.4 |
v | 1.v | 2199ms | 24ms | 1.1MB | 2187ms | 0ms | v/clang 0.4.4 |
go | 3.go | 2326ms | 13ms | 49.0MB | 2310ms | 3ms | tinygo 0.30.0 |
swift | 1.swift | 2453ms | 7.0ms | 8.5MB | 2443ms | 0ms | swift 5.9.2 |
crystal | 1.cr | 2458ms | 1.6ms | 3.3MB | 2450ms | 0ms | crystal 1.11.2 |
dart | 2.dart | 2804ms | 8.6ms | 6.1MB | 2793ms | 0ms | dart/exe 3.2.6 |
zig | 1.zig | 2839ms | 2.3ms | 1.1MB | 2830ms | 0ms | zig 0.12.0-dev.2341+92211135f |
ocaml | 2.ml | 2911ms | 3.0ms | 3.0MB | 2897ms | 0ms | ocaml 5.1.1 |
d | 1.d | 3201ms | 46ms | 2.8MB | 3190ms | 0ms | ldc2 1.36.0 |
d | 2-i.d | 3209ms | 2.9ms | 2.9MB | 3197ms | 0ms | ldc2 1.36.0 |
d | 1.d | 3516ms | 4.8ms | 4.5MB | 3507ms | 0ms | dmd 2.106.1 |
wasm | 1.rs | 4176ms | 317ms | 18.5MB | 4160ms | 0ms | wasmtime 17.0.0 |
rust | 1.rs | 4197ms | 17ms | 1.8MB | 4190ms | 0ms | rustc 1.75.0 |
d | 1-im.d | 4227ms | 21ms | 6.7MB | 16463ms | 7ms | dmd 2.106.1 |
d | 1-i.d | timeout | 0.0ms | 4.4MB | 4990ms | 0ms | dmd 2.106.1 |
d | 2-i.d | timeout | 0.0ms | 4.4MB | 4990ms | 0ms | dmd 2.106.1 |
d | 2-im.d | timeout | 0.0ms | 8.7MB | 19663ms | 10ms | dmd 2.106.1 |
wasm | 1.rs | timeout | 0.0ms | 50.5MB | 4983ms | 7ms | node 18.19.0 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 3-im.rs | 38ms | 0.5ms | 6.0MB | 113ms | 0ms | rustc 1.75.0 |
d | 1-im.d | 39ms | 1.4ms | 5.2MB | 107ms | 0ms | ldc2 1.36.0 |
cpp | 1-im.cpp | 43ms | 0.6ms | 5.9MB | 133ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
cpp | 1-im.cpp | 43ms | 0.4ms | 4.5MB | 140ms | 0ms | g++ 11.4.0 |
rust | 5-m.rs | 58ms | 1.1ms | 6.0MB | 187ms | 0ms | rustc 1.75.0 |
zig | 2-m.zig | 63ms | 0.3ms | 3.6MB | 203ms | 0ms | zig 0.12.0-dev.2341+92211135f |
rust | 2-im.rs | 65ms | 0.7ms | 6.0MB | 207ms | 0ms | rustc 1.75.0 |
go | 3-m.go | 75ms | 0.3ms | 5.3MB | 203ms | 0ms | go 1.21.6 |
d | 2-im.d | 96ms | 1.8ms | 6.9MB | 343ms | 0ms | ldc2 1.36.0 |
rust | 3-i.rs | 123ms | 0.5ms | 1.9MB | 110ms | 0ms | rustc 1.75.0 |
d | 1-i.d | 124ms | 0.1ms | 2.8MB | 110ms | 0ms | ldc2 1.36.0 |
rust | 1-m.rs | 139ms | 2.0ms | 6.0MB | 497ms | 0ms | rustc 1.75.0 |
zig | 3-i.zig | 148ms | 0.3ms | 1.1MB | 140ms | 0ms | zig 0.12.0-dev.2341+92211135f |
rust | 2-i.rs | 150ms | 0.4ms | 1.8MB | 140ms | 0ms | rustc 1.75.0 |
zig | 2.zig | 167ms | 0.7ms | 1.1MB | 160ms | 0ms | zig 0.12.0-dev.2341+92211135f |
java | 1-m.java | 179ms | 6.4ms | 48.5MB | 490ms | 27ms | openjdk 21 |
java | 1-m.java | 185ms | 1.9ms | 48.7MB | 487ms | 13ms | openjdk 23 |
v | 1.v | 188ms | 1.0ms | 1.1MB | 180ms | 0ms | v/clang 0.4.4 |
v | 1.v | 190ms | 0.2ms | 1.9MB | 180ms | 0ms | v/clang+gc 0.4.4 |
java | 1-m.java | 198ms | 9.6ms | 97.6MB | 523ms | 47ms | graal/jvm 17.0.8 |
crystal | 1.cr | 205ms | 0.9ms | 3.1MB | 190ms | 0ms | crystal 1.11.2 |
swift | 1.swift | 212ms | 1.3ms | 8.4MB | 200ms | 0ms | swift 5.9.2 |
dart | 2.dart | 231ms | 3.0ms | 6.0MB | 217ms | 0ms | dart/exe 3.2.6 |
ocaml | 2.ml | 245ms | 2.5ms | 3.0MB | 233ms | 0ms | ocaml 5.1.1 |
zig | 1.zig | 248ms | 13ms | 1.1MB | 237ms | 0ms | zig 0.12.0-dev.2341+92211135f |
d | 2-i.d | 265ms | 0.5ms | 2.9MB | 250ms | 0ms | ldc2 1.36.0 |
d | 1.d | 267ms | 3.3ms | 2.8MB | 253ms | 0ms | ldc2 1.36.0 |
java | 1-m.java | 290ms | 2.9ms | 45.8MB | 473ms | 133ms | openjdk/zgc 21 |
d | 1.d | 296ms | 1.6ms | 4.5MB | 290ms | 0ms | dmd 2.106.1 |
wasm | 1.rs | 341ms | 5.0ms | 18.5MB | 330ms | 0ms | wasmtime 17.0.0 |
rust | 1.rs | 349ms | 2.2ms | 1.9MB | 337ms | 0ms | rustc 1.75.0 |
d | 1-im.d | 367ms | 18ms | 8.7MB | 1340ms | 0ms | dmd 2.106.1 |
go | 3.go | 509ms | 2.2ms | 49.0MB | 493ms | 3ms | tinygo 0.30.0 |
d | 2-im.d | 526ms | 7.6ms | 8.6MB | 2000ms | 0ms | dmd 2.106.1 |
wasm | 1.rs | 654ms | 3.7ms | 50.4MB | 640ms | 10ms | node 18.19.0 |
d | 1-i.d | 858ms | 2.1ms | 4.6MB | 847ms | 0ms | dmd 2.106.1 |
d | 2-i.d | 1373ms | 13ms | 4.4MB | 1357ms | 0ms | dmd 2.106.1 |