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 |
---|---|---|---|---|---|---|---|
chapel | 2.chpl | 428ms | 1.0ms | 34.2MB | 417ms | 0ms | chpl 1.31.0 |
go | 8.go | 1054ms | 8.1ms | 8.5MB | 1043ms | 0ms | go 1.23.4 |
dart | 2.dart | 1183ms | 10ms | 14.5MB | 1157ms | 30ms | dart/exe 3.6.0 |
rust | 1.rs | 1461ms | 11ms | 2.7MB | 1253ms | 183ms | rustc 1.83.0 |
rust | 2.rs | 1636ms | 13ms | 2.8MB | 1527ms | 93ms | rustc 1.83.0 |
python | 4.py | 1803ms | 1.7ms | 8.9MB | 1750ms | 37ms | pyston 3.8.12 |
crystal | 1.cr | 1879ms | 34ms | 6.5MB | 1837ms | 23ms | crystal 1.14.0 |
python | 4.py | 1882ms | 15ms | 9.4MB | 1823ms | 40ms | cpython 3.13.1 |
python | 4.py | 2018ms | 13ms | 89.1MB | 1983ms | 20ms | pypy 3.10.14 |
wasm | 2.rs | 2042ms | 3.2ms | 19.8MB | 2027ms | 0ms | wasmtime 28.0.0 |
d | 1.d | 2279ms | 10ms | 8.1MB | 2257ms | 343ms | ldc2 1.40.0 |
zig | 1.zig | 2339ms | 5.6ms | 2.2MB | 2307ms | 17ms | zig 0.13.0 |
acton | 1-m.act | 2853ms | 97ms | 8.6MB | 2510ms | 1970ms | actonc 0.24.1 |
csharp | 1.cs | 3047ms | 34ms | 19.8MB | 2953ms | 97ms | dotnet/aot 9.0.101 |
java | 1.java | 3054ms | 20ms | 378.6MB | 3497ms | 93ms | graal/jvm 17.0.8 |
csharp | 1.cs | 3390ms | 117ms | 44.0MB | 3390ms | 110ms | dotnet 9.0.101 |
kotlin | 1.kt | 3505ms | 35ms | 353.8MB | 4313ms | 93ms | kotlin/jvm 21 |
java | 1.java | 3512ms | 55ms | 352.2MB | 4263ms | 100ms | openjdk 21 |
java | 1.java | 3516ms | 17ms | 467.6MB | 4333ms | 110ms | openjdk 23 |
d | 1.d | 4137ms | 6.5ms | 10.4MB | 4090ms | 407ms | dmd 2.109.1 |
javascript | 3.js | 4744ms | 21ms | 92.2MB | 4720ms | 30ms | node 23.5.0 |
java | 1.java | 4911ms | 83ms | 1847.1MB | 4407ms | 1287ms | openjdk/zgc 21 |
kotlin | 1n.kt | timeout | 0.0ms | 7.5MB | 6350ms | 310ms | kotlin/native 1.8.21 |
kotlin | 2n.kt | timeout | 0.0ms | 13.3MB | 4990ms | 177ms | kotlin/native 1.8.21 |
ruby | 1.rb | timeout | 0.0ms | 46.6MB | 4940ms | 43ms | ruby 3.4.1 |
ruby | 1.rb | timeout | 0.0ms | 127.7MB | 4900ms | 83ms | ruby/yjit 3.4.1 |
ruby | 1.rb | timeout | 0.0ms | 465.7MB | 13040ms | 457ms | truffleruby 24.1.1 |
swift | 1.swift | timeout | 0.0ms | 7.4MB | 4913ms | 70ms | swift 6.0.3 |
typescript | 3.ts | timeout | 0.0ms | 100.8MB | 4980ms | 33ms | deno 2.1.4 |
v | 2.v | timeout | 0.0ms | 7.8MB | 4973ms | 10ms | v/clang+gc 0.4.9 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
chapel | 2.chpl | 115ms | 2.9ms | 34.4MB | 103ms | 7ms | chpl 1.31.0 |
go | 8.go | 254ms | 6.5ms | 8.4MB | 243ms | 0ms | go 1.23.4 |
dart | 2.dart | 299ms | 6.9ms | 14.6MB | 277ms | 13ms | dart/exe 3.6.0 |
rust | 1.rs | 306ms | 1.7ms | 2.4MB | 283ms | 3ms | rustc 1.83.0 |
rust | 2.rs | 367ms | 5.1ms | 2.5MB | 353ms | 0ms | rustc 1.83.0 |
crystal | 1.cr | 415ms | 2.5ms | 5.4MB | 403ms | 0ms | crystal 1.14.0 |
python | 4.py | 427ms | 4.9ms | 8.8MB | 413ms | 0ms | pyston 3.8.12 |
python | 4.py | 450ms | 5.6ms | 9.1MB | 437ms | 0ms | cpython 3.13.1 |
wasm | 2.rs | 486ms | 6.6ms | 19.2MB | 470ms | 3ms | wasmtime 28.0.0 |
python | 4.py | 515ms | 2.6ms | 83.8MB | 480ms | 17ms | pypy 3.10.14 |
zig | 1.zig | 536ms | 2.8ms | 1.8MB | 520ms | 0ms | zig 0.13.0 |
d | 1.d | 556ms | 21ms | 8.1MB | 560ms | 100ms | ldc2 1.40.0 |
csharp | 1.cs | 716ms | 8.6ms | 19.6MB | 667ms | 33ms | dotnet/aot 9.0.101 |
v | 2.v | 749ms | 2.2ms | 2.6MB | 733ms | 3ms | v/clang+gc 0.4.9 |
acton | 1-m.act | 811ms | 6.4ms | 5.8MB | 710ms | 577ms | actonc 0.24.1 |
java | 1-m.java | 862ms | 30ms | 376.3MB | 1213ms | 93ms | graal/jvm 17.0.8 |
kotlin | 1-m.kt | 939ms | 37ms | 355.0MB | 1617ms | 70ms | kotlin/jvm 21 |
csharp | 1.cs | 940ms | 21ms | 43.5MB | 1023ms | 43ms | dotnet 9.0.101 |
java | 1-m.java | 946ms | 37ms | 351.6MB | 1657ms | 93ms | openjdk 21 |
java | 1-m.java | 959ms | 18ms | 387.9MB | 1673ms | 93ms | openjdk 23 |
d | 1.d | 983ms | 5.3ms | 10.2MB | 927ms | 133ms | dmd 2.109.1 |
javascript | 3.js | 1030ms | 4.0ms | 74.8MB | 1017ms | 17ms | node 23.5.0 |
typescript | 3.ts | 1225ms | 9.4ms | 78.9MB | 1187ms | 57ms | deno 2.1.4 |
ruby | 1.rb | 1574ms | 13ms | 46.1MB | 1533ms | 30ms | ruby 3.4.1 |
ruby | 1-m.rb | 1703ms | 16ms | 424.0MB | 4463ms | 207ms | truffleruby 24.1.1 |
ruby | 1.rb | 1721ms | 12ms | 124.3MB | 1573ms | 133ms | ruby/yjit 3.4.1 |
swift | 1.swift | 1766ms | 11ms | 6.9MB | 1753ms | 0ms | swift 6.0.3 |
java | 1.java | 1914ms | 12ms | 1374.3MB | 1617ms | 980ms | openjdk/zgc 21 |
kotlin | 1n.kt | timeout | 0.0ms | 7.4MB | 6420ms | 257ms | kotlin/native 1.8.21 |
kotlin | 2n.kt | timeout | 0.0ms | 8.2MB | 5000ms | 150ms | kotlin/native 1.8.21 |