Current benchmark data was generated on Wed Jan 22 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 |
---|---|---|---|---|---|---|---|
d | 1-im.d | 376ms | 7.3ms | 6.9MB | 1413ms | 0ms | ldc2 1.40.0 |
cpp | 1-im.cpp | 406ms | 13ms | 7.9MB | 1557ms | 7ms | clang++ 14.0.0-1ubuntu1.1 |
cpp | 1-im.cpp | 407ms | 4.6ms | 4.7MB | 1547ms | 0ms | g++ 11.4.0 |
rust | 3-im.rs | 411ms | 1.6ms | 4.0MB | 1577ms | 0ms | rustc 1.84.0 |
rust | 5-m.rs | 566ms | 8.3ms | 4.0MB | 2153ms | 0ms | rustc 1.84.0 |
rust | 2-im.rs | 629ms | 8.2ms | 4.0MB | 2403ms | 3ms | rustc 1.84.0 |
zig | 2-m.zig | 661ms | 18ms | 3.5MB | 2427ms | 0ms | zig 0.13.0 |
go | 3-m.go | 722ms | 1.2ms | 5.5MB | 2783ms | 0ms | go 1.23.5 |
java | 1-m.java | 911ms | 9.8ms | 100.3MB | 3347ms | 37ms | graal/jvm 17.0.8 |
rust | 1-m.rs | 967ms | 7.9ms | 4.0MB | 3727ms | 0ms | rustc 1.84.0 |
java | 1-m.java | 978ms | 3.0ms | 48.5MB | 3633ms | 20ms | openjdk 21 |
java | 1-m.java | 987ms | 3.8ms | 50.3MB | 3620ms | 27ms | openjdk 23 |
java | 1-m.java | 1035ms | 18ms | 46.4MB | 3387ms | 133ms | openjdk/zgc 21 |
d | 2-im.d | 1117ms | 1.7ms | 5.1MB | 4290ms | 0ms | ldc2 1.40.0 |
d | 1-i.d | 1478ms | 0.5ms | 2.9MB | 1470ms | 0ms | ldc2 1.40.0 |
rust | 3-i.rs | 1495ms | 5.0ms | 1.9MB | 1483ms | 0ms | rustc 1.84.0 |
rust | 2-i.rs | 1759ms | 3.0ms | 1.8MB | 1750ms | 0ms | rustc 1.84.0 |
zig | 3-i.zig | 1788ms | 0.6ms | 1.1MB | 1777ms | 0ms | zig 0.13.0 |
v | 1.v | 2153ms | 8.6ms | 1.1MB | 2143ms | 0ms | v/clang 0.4.9 |
v | 1.v | 2197ms | 2.9ms | 1.9MB | 2183ms | 0ms | v/clang+gc 0.4.9 |
go | 3.go | 2265ms | 1.3ms | 48.5MB | 2250ms | 0ms | tinygo 0.35.0 |
swift | 1.swift | 2463ms | 9.5ms | 5.6MB | 2450ms | 0ms | swift 6.0.3 |
zig | 2.zig | 2476ms | 64ms | 1.1MB | 2467ms | 0ms | zig 0.13.0 |
crystal | 1.cr | 2495ms | 6.5ms | 2.8MB | 2483ms | 0ms | crystal 1.15.0 |
rust | 1.rs | 2665ms | 2.5ms | 1.8MB | 2657ms | 0ms | rustc 1.84.0 |
dart | 2.dart | 2739ms | 8.1ms | 6.3MB | 2727ms | 0ms | dart/exe 3.6.1 |
zig | 1.zig | 2868ms | 9.8ms | 1.1MB | 2857ms | 0ms | zig 0.13.0 |
ocaml | 2.ml | 2911ms | 3.1ms | 4.9MB | 2900ms | 0ms | ocaml 5.3.0 |
d | 1.d | 3096ms | 15ms | 2.9MB | 3087ms | 0ms | ldc2 1.40.0 |
d | 2-i.d | 3228ms | 5.5ms | 2.8MB | 3213ms | 0ms | ldc2 1.40.0 |
d | 1.d | 3520ms | 9.8ms | 4.6MB | 3510ms | 0ms | dmd 2.109.1 |
d | 1-im.d | 4244ms | 30ms | 6.9MB | 16430ms | 7ms | dmd 2.109.1 |
wasm | 1.rs | 4263ms | 18ms | 20.8MB | 4253ms | 0ms | wasmtime 29.0.1 |
d | 1-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.109.1 |
d | 2-i.d | timeout | 0.0ms | 4.5MB | 4990ms | 0ms | dmd 2.109.1 |
d | 2-im.d | timeout | 0.0ms | 6.7MB | 19493ms | 10ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 3-im.rs | 38ms | 0.2ms | 6.0MB | 120ms | 0ms | rustc 1.84.0 |
d | 1-im.d | 38ms | 2.6ms | 6.9MB | 110ms | 0ms | ldc2 1.40.0 |
cpp | 1-im.cpp | 42ms | 1.3ms | 7.9MB | 127ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
cpp | 1-im.cpp | 43ms | 0.7ms | 4.7MB | 140ms | 0ms | g++ 11.4.0 |
rust | 5-m.rs | 56ms | 3.5ms | 4.0MB | 170ms | 0ms | rustc 1.84.0 |
zig | 2-m.zig | 60ms | 2.2ms | 3.5MB | 190ms | 0ms | zig 0.13.0 |
rust | 2-im.rs | 62ms | 0.9ms | 6.0MB | 200ms | 0ms | rustc 1.84.0 |
go | 3-m.go | 75ms | 0.6ms | 5.5MB | 207ms | 0ms | go 1.23.5 |
rust | 1-m.rs | 86ms | 1.8ms | 6.0MB | 300ms | 0ms | rustc 1.84.0 |
d | 2-im.d | 99ms | 1.3ms | 5.3MB | 343ms | 0ms | ldc2 1.40.0 |
d | 1-i.d | 123ms | 0.3ms | 2.8MB | 113ms | 0ms | ldc2 1.40.0 |
rust | 3-i.rs | 126ms | 1.4ms | 1.9MB | 120ms | 0ms | rustc 1.84.0 |
rust | 2-i.rs | 149ms | 0.9ms | 1.8MB | 140ms | 0ms | rustc 1.84.0 |
zig | 3-i.zig | 149ms | 0.2ms | 1.1MB | 140ms | 0ms | zig 0.13.0 |
java | 1-m.java | 181ms | 2.4ms | 48.3MB | 483ms | 20ms | openjdk 21 |
v | 1.v | 186ms | 2.6ms | 1.1MB | 177ms | 0ms | v/clang 0.4.9 |
v | 1.v | 188ms | 0.5ms | 1.9MB | 180ms | 0ms | v/clang+gc 0.4.9 |
java | 1-m.java | 188ms | 5.8ms | 50.3MB | 470ms | 30ms | openjdk 23 |
zig | 2.zig | 199ms | 5.9ms | 1.1MB | 190ms | 0ms | zig 0.13.0 |
crystal | 1.cr | 205ms | 1.5ms | 2.8MB | 193ms | 0ms | crystal 1.15.0 |
swift | 1.swift | 212ms | 2.8ms | 5.6MB | 200ms | 0ms | swift 6.0.3 |
java | 1-m.java | 220ms | 19ms | 101.5MB | 580ms | 43ms | graal/jvm 17.0.8 |
rust | 1.rs | 224ms | 1.9ms | 1.8MB | 210ms | 0ms | rustc 1.84.0 |
dart | 2.dart | 225ms | 2.6ms | 6.1MB | 213ms | 0ms | dart/exe 3.6.1 |
zig | 1.zig | 239ms | 0.8ms | 1.1MB | 230ms | 0ms | zig 0.13.0 |
ocaml | 2.ml | 245ms | 4.0ms | 4.9MB | 233ms | 0ms | ocaml 5.3.0 |
d | 1.d | 260ms | 1.3ms | 2.9MB | 247ms | 0ms | ldc2 1.40.0 |
d | 2-i.d | 267ms | 1.0ms | 2.8MB | 257ms | 0ms | ldc2 1.40.0 |
d | 1.d | 295ms | 1.7ms | 4.6MB | 283ms | 0ms | dmd 2.109.1 |
java | 1-m.java | 296ms | 3.4ms | 47.5MB | 503ms | 130ms | openjdk/zgc 21 |
d | 1-im.d | 354ms | 4.6ms | 8.8MB | 1347ms | 3ms | dmd 2.109.1 |
wasm | 1.rs | 357ms | 5.3ms | 19.4MB | 347ms | 0ms | wasmtime 29.0.1 |
go | 3.go | 485ms | 0.5ms | 47.5MB | 473ms | 0ms | tinygo 0.35.0 |
d | 2-im.d | 527ms | 5.0ms | 6.9MB | 1993ms | 0ms | dmd 2.109.1 |
d | 1-i.d | 850ms | 18ms | 4.4MB | 840ms | 0ms | dmd 2.109.1 |
d | 2-i.d | 1388ms | 25ms | 4.5MB | 1380ms | 0ms | dmd 2.109.1 |