Current benchmark data was generated on Sun Dec 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 | 399ms | 45ms | 5.1MB | 1410ms | 0ms | ldc2 1.39.0 |
cpp | 1-im.cpp | 404ms | 2.2ms | 4.5MB | 1547ms | 0ms | g++ 11.4.0 |
cpp | 1-im.cpp | 408ms | 0.7ms | 5.9MB | 1573ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
rust | 3-im.rs | 413ms | 6.2ms | 4.0MB | 1573ms | 0ms | rustc 1.83.0 |
rust | 5-m.rs | 567ms | 6.5ms | 4.0MB | 2143ms | 3ms | rustc 1.83.0 |
rust | 2-im.rs | 629ms | 1.2ms | 6.0MB | 2387ms | 0ms | rustc 1.83.0 |
zig | 2-m.zig | 645ms | 6.6ms | 3.5MB | 2427ms | 0ms | zig 0.13.0 |
go | 3-m.go | 737ms | 23ms | 5.5MB | 2773ms | 7ms | go 1.23.3 |
java | 1-m.java | 897ms | 23ms | 100.1MB | 3263ms | 53ms | graal/jvm 17.0.8 |
java | 1-m.java | 965ms | 57ms | 50.0MB | 3537ms | 20ms | openjdk 23 |
java | 1-m.java | 983ms | 6.8ms | 49.0MB | 3597ms | 37ms | openjdk 21 |
rust | 1-m.rs | 997ms | 11ms | 6.0MB | 3850ms | 0ms | rustc 1.83.0 |
java | 1-m.java | 1043ms | 9.0ms | 46.1MB | 3407ms | 143ms | openjdk/zgc 21 |
d | 2-im.d | 1114ms | 10ms | 5.1MB | 4297ms | 0ms | ldc2 1.39.0 |
d | 1-i.d | 1488ms | 14ms | 2.9MB | 1480ms | 0ms | ldc2 1.39.0 |
rust | 3-i.rs | 1489ms | 1.2ms | 1.9MB | 1480ms | 0ms | rustc 1.83.0 |
rust | 2-i.rs | 1754ms | 1.4ms | 1.8MB | 1740ms | 0ms | rustc 1.83.0 |
zig | 3-i.zig | 1790ms | 1.2ms | 1.1MB | 1780ms | 0ms | zig 0.13.0 |
v | 1.v | 2229ms | 8.2ms | 1.9MB | 2217ms | 0ms | v/clang+gc 0.4.8 |
v | 1.v | 2268ms | 4.1ms | 1.1MB | 2257ms | 0ms | v/clang 0.4.8 |
go | 3.go | 2272ms | 8.6ms | 50.2MB | 2253ms | 0ms | tinygo 0.34.0 |
zig | 2.zig | 2428ms | 24ms | 1.1MB | 2420ms | 0ms | zig 0.13.0 |
swift | 1.swift | 2463ms | 5.8ms | 6.6MB | 2453ms | 0ms | swift 6.0.2 |
crystal | 1.cr | 2494ms | 6.2ms | 3.0MB | 2483ms | 0ms | crystal 1.14.0 |
rust | 1.rs | 2669ms | 15ms | 1.8MB | 2657ms | 0ms | rustc 1.83.0 |
zig | 1.zig | 2870ms | 11ms | 1.1MB | 2857ms | 0ms | zig 0.13.0 |
ocaml | 2.ml | 2908ms | 3.8ms | 4.9MB | 2897ms | 0ms | ocaml 5.2.1 |
dart | 2.dart | 2916ms | 28ms | 6.0MB | 2903ms | 0ms | dart/exe 3.5.4 |
d | 1.d | 3139ms | 35ms | 2.9MB | 3130ms | 0ms | ldc2 1.39.0 |
d | 2-i.d | 3221ms | 2.5ms | 2.9MB | 3210ms | 0ms | ldc2 1.39.0 |
wasm | 1.rs | 3274ms | 9.3ms | 39.0MB | 3263ms | 0ms | wasmer/llvm 5.0.2 |
d | 1.d | 3537ms | 17ms | 4.6MB | 3523ms | 0ms | dmd 2.109.1 |
wasm | 1.rs | 4081ms | 22ms | 18.6MB | 4063ms | 0ms | wasmtime 27.0.0 |
d | 1-im.d | 4241ms | 40ms | 8.9MB | 16490ms | 7ms | dmd 2.109.1 |
d | 1-i.d | timeout | 0.0ms | 4.5MB | 4987ms | 0ms | dmd 2.109.1 |
d | 2-i.d | timeout | 0.0ms | 4.6MB | 4990ms | 0ms | dmd 2.109.1 |
d | 2-im.d | timeout | 0.0ms | 6.8MB | 19780ms | 7ms | dmd 2.109.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
rust | 3-im.rs | 38ms | 0.3ms | 4.0MB | 117ms | 3ms | rustc 1.83.0 |
d | 1-im.d | 40ms | 1.9ms | 5.1MB | 110ms | 0ms | ldc2 1.39.0 |
cpp | 1-im.cpp | 43ms | 1.1ms | 7.9MB | 130ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
cpp | 1-im.cpp | 44ms | 0.2ms | 4.5MB | 140ms | 0ms | g++ 11.4.0 |
rust | 5-m.rs | 56ms | 0.8ms | 6.0MB | 170ms | 0ms | rustc 1.83.0 |
zig | 2-m.zig | 60ms | 2.3ms | 3.5MB | 193ms | 0ms | zig 0.13.0 |
rust | 2-im.rs | 62ms | 1.1ms | 6.0MB | 200ms | 0ms | rustc 1.83.0 |
go | 3-m.go | 75ms | 0.6ms | 5.5MB | 200ms | 3ms | go 1.23.3 |
rust | 1-m.rs | 88ms | 1.9ms | 6.0MB | 307ms | 0ms | rustc 1.83.0 |
d | 2-im.d | 110ms | 20ms | 6.9MB | 337ms | 3ms | ldc2 1.39.0 |
d | 1-i.d | 124ms | 0.4ms | 2.8MB | 110ms | 0ms | ldc2 1.39.0 |
rust | 3-i.rs | 124ms | 0.4ms | 1.9MB | 117ms | 0ms | rustc 1.83.0 |
rust | 2-i.rs | 149ms | 0.8ms | 1.8MB | 140ms | 0ms | rustc 1.83.0 |
zig | 3-i.zig | 149ms | 0.1ms | 1.1MB | 140ms | 0ms | zig 0.13.0 |
java | 1-m.java | 180ms | 5.5ms | 48.5MB | 493ms | 23ms | openjdk 21 |
java | 1-m.java | 194ms | 5.8ms | 50.1MB | 480ms | 23ms | openjdk 23 |
v | 1.v | 194ms | 1.6ms | 1.1MB | 183ms | 0ms | v/clang 0.4.8 |
v | 1.v | 198ms | 4.0ms | 1.9MB | 183ms | 0ms | v/clang+gc 0.4.8 |
zig | 2.zig | 200ms | 1.5ms | 1.1MB | 190ms | 0ms | zig 0.13.0 |
java | 1-m.java | 202ms | 11ms | 101.4MB | 547ms | 33ms | graal/jvm 17.0.8 |
crystal | 1.cr | 208ms | 2.8ms | 3.0MB | 197ms | 0ms | crystal 1.14.0 |
swift | 1.swift | 211ms | 1.2ms | 5.8MB | 200ms | 0ms | swift 6.0.2 |
rust | 1.rs | 223ms | 0.6ms | 1.8MB | 210ms | 0ms | rustc 1.83.0 |
zig | 1.zig | 241ms | 1.0ms | 1.1MB | 230ms | 0ms | zig 0.13.0 |
dart | 2.dart | 244ms | 13ms | 6.0MB | 233ms | 0ms | dart/exe 3.5.4 |
ocaml | 2.ml | 245ms | 2.2ms | 4.9MB | 233ms | 0ms | ocaml 5.2.1 |
d | 1.d | 263ms | 2.2ms | 2.8MB | 253ms | 0ms | ldc2 1.39.0 |
d | 2-i.d | 266ms | 0.8ms | 2.8MB | 260ms | 0ms | ldc2 1.39.0 |
wasm | 1.rs | 285ms | 1.7ms | 36.9MB | 270ms | 0ms | wasmer/llvm 5.0.2 |
java | 1-m.java | 295ms | 2.3ms | 45.7MB | 483ms | 137ms | openjdk/zgc 21 |
d | 1.d | 296ms | 2.0ms | 4.5MB | 287ms | 0ms | dmd 2.109.1 |
wasm | 1.rs | 341ms | 0.3ms | 18.5MB | 327ms | 0ms | wasmtime 27.0.0 |
d | 1-im.d | 359ms | 0.1ms | 8.9MB | 1343ms | 0ms | dmd 2.109.1 |
go | 3.go | 485ms | 0.5ms | 50.2MB | 470ms | 3ms | tinygo 0.34.0 |
d | 2-im.d | 545ms | 24ms | 6.8MB | 1990ms | 0ms | dmd 2.109.1 |
d | 1-i.d | 860ms | 8.9ms | 4.5MB | 850ms | 0ms | dmd 2.109.1 |
d | 2-i.d | 1389ms | 18ms | 4.5MB | 1377ms | 0ms | dmd 2.109.1 |