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 |
---|---|---|---|---|---|---|---|
c | 1-mffi.c | 207ms | 11ms | 9.4MB | 763ms | 10ms | clang 14.0.0-1ubuntu1.1 |
zig | 1.zig | 237ms | 4.1ms | 4.2MB | 227ms | 0ms | zig 0.13.0 |
rust | 9.rs | 248ms | 0.5ms | 4.8MB | 240ms | 0ms | rustc 1.85.0-nightly |
c | 1-mffi.c | 257ms | 3.9ms | 6.6MB | 780ms | 0ms | gcc 14.2.0 |
odin | 1.odin | 271ms | 3.6ms | 4.6MB | 260ms | 0ms | odin 2024 |
d | 1.d | 284ms | 2.4ms | 7.5MB | 270ms | 0ms | ldc2 1.40.0 |
rust | 8.rs | 291ms | 2.6ms | 4.9MB | 277ms | 0ms | rustc 1.83.0 |
crystal | 1.cr | 300ms | 7.0ms | 9.2MB | 287ms | 0ms | crystal 1.14.0 |
nim | 1.nim | 366ms | 3.5ms | 4.8MB | 353ms | 0ms | nim/clang 2.2.0 |
c | 1-mffi.c | 410ms | 4.7ms | 6.0MB | 397ms | 0ms | zigcc 0.13.0 |
c | 1-ffi.c | 411ms | 7.0ms | 6.0MB | 403ms | 0ms | zigcc 0.13.0 |
c | 1-ffi.c | 429ms | 6.2ms | 6.7MB | 417ms | 0ms | clang 14.0.0-1ubuntu1.1 |
c | 1-ffi.c | 509ms | 5.2ms | 6.6MB | 500ms | 0ms | gcc 14.2.0 |
nim | 1.nim | 542ms | 1.7ms | 4.5MB | 533ms | 0ms | nim 2.2.0 |
wasm | 8.rs | 773ms | 10ms | 22.1MB | 760ms | 0ms | wasmtime 28.0.0 |
csharp | 2.cs | 1032ms | 65ms | 46.1MB | 1010ms | 10ms | dotnet 9.0.101 |
java | 1b.java | 1088ms | 25ms | 55.9MB | 1183ms | 20ms | openjdk 23 |
java | 1b.java | 1099ms | 9.8ms | 54.1MB | 1203ms | 10ms | openjdk 21 |
java | 1b.java | 1140ms | 3.0ms | 114.0MB | 1380ms | 43ms | graal/jvm 17.0.8 |
java | 1.java | 1186ms | 11ms | 134.8MB | 1287ms | 43ms | graal/jvm 17.0.8 |
java | 1b.java | 1206ms | 5.6ms | 51.0MB | 1187ms | 130ms | openjdk/zgc 21 |
java | 1a.java | 1561ms | 13ms | 54.8MB | 1640ms | 30ms | openjdk 21 |
java | 1a.java | 1568ms | 7.1ms | 56.5MB | 1640ms | 33ms | openjdk 23 |
java | 1a.java | 1588ms | 7.8ms | 104.9MB | 1690ms | 37ms | graal/jvm 17.0.8 |
java | 1.java | 1614ms | 17ms | 299.9MB | 1663ms | 50ms | openjdk 23 |
java | 1.java | 1619ms | 19ms | 202.2MB | 1683ms | 37ms | openjdk 21 |
java | 1a.java | 1691ms | 11ms | 53.0MB | 1660ms | 133ms | openjdk/zgc 21 |
csharp | 1.cs | 1949ms | 25ms | 42.7MB | 1913ms | 13ms | dotnet 9.0.101 |
d | 1.d | 1993ms | 13ms | 8.5MB | 1980ms | 0ms | dmd 2.109.1 |
java | 1.java | 2222ms | 9.3ms | 839.9MB | 1657ms | 657ms | openjdk/zgc 21 |
csharp | 3.cs | 2330ms | 12ms | 42.8MB | 2303ms | 3ms | dotnet 9.0.101 |
csharp | 3.cs | 2397ms | 13ms | 22.3MB | 2383ms | 0ms | dotnet/aot 9.0.101 |
go | 1.go | 2525ms | 9.4ms | 7.5MB | 2513ms | 0ms | go 1.23.4 |
csharp | 1.cs | 3363ms | 16ms | 22.1MB | 3350ms | 0ms | dotnet/aot 9.0.101 |
go | 1.go | 3539ms | 17ms | 4.4MB | 3527ms | 0ms | tinygo 0.35.0 |
csharp | 1.cs | timeout | 0.0ms | 26.4MB | 4987ms | 3ms | mono 6.12.0 |
java | 2.java | timeout | 0.0ms | 680.4MB | 5250ms | 110ms | openjdk 21 |
java | 2.java | timeout | 0.0ms | 804.6MB | 5267ms | 103ms | openjdk 23 |
java | 2.java | timeout | 0.0ms | 3394.0MB | 3423ms | 1930ms | openjdk/zgc 21 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
zig | 1.zig | 12ms | 0.1ms | 1.3MB | 0ms | 0ms | zig 0.13.0 |
rust | 9.rs | 12ms | 0.4ms | 1.9MB | 0ms | 0ms | rustc 1.85.0-nightly |
odin | 1.odin | 14ms | 1.2ms | 1.6MB | 10ms | 0ms | odin 2024 |
d | 1.d | 14ms | 0.5ms | 3.1MB | 10ms | 0ms | ldc2 1.40.0 |
rust | 8.rs | 15ms | 0.5ms | 1.9MB | 10ms | 0ms | rustc 1.83.0 |
c | 1-mffi.c | 15ms | 0.9ms | 8.5MB | 23ms | 0ms | clang 14.0.0-1ubuntu1.1 |
crystal | 1.cr | 16ms | 0.1ms | 6.3MB | 10ms | 0ms | crystal 1.14.0 |
nim | 1.nim | 18ms | 0.5ms | 1.9MB | 10ms | 0ms | nim/clang 2.2.0 |
c | 1-ffi.c | 19ms | 0.1ms | 3.0MB | 10ms | 0ms | zigcc 0.13.0 |
c | 1-mffi.c | 19ms | 0.1ms | 3.0MB | 10ms | 0ms | zigcc 0.13.0 |
c | 1-ffi.c | 21ms | 0.1ms | 3.8MB | 10ms | 0ms | clang 14.0.0-1ubuntu1.1 |
c | 1-mffi.c | 23ms | 1.2ms | 5.6MB | 60ms | 0ms | gcc 14.2.0 |
c | 1-ffi.c | 24ms | 0.3ms | 3.6MB | 17ms | 0ms | gcc 14.2.0 |
nim | 1.nim | 25ms | 0.8ms | 1.8MB | 20ms | 0ms | nim 2.2.0 |
wasm | 8.rs | 40ms | 0.6ms | 21.2MB | 30ms | 0ms | wasmtime 28.0.0 |
d | 1.d | 86ms | 1.7ms | 4.5MB | 80ms | 0ms | dmd 2.109.1 |
go | 1.go | 110ms | 3.5ms | 3.4MB | 103ms | 0ms | go 1.23.4 |
csharp | 3.cs | 112ms | 2.9ms | 19.4MB | 100ms | 0ms | dotnet/aot 9.0.101 |
csharp | 1.cs | 130ms | 1.9ms | 39.8MB | 110ms | 7ms | dotnet 9.0.101 |
csharp | 2.cs | 141ms | 27ms | 41.3MB | 123ms | 0ms | dotnet 9.0.101 |
go | 1.go | 146ms | 1.3ms | 2.1MB | 140ms | 0ms | tinygo 0.35.0 |
csharp | 1.cs | 150ms | 3.4ms | 17.0MB | 133ms | 0ms | dotnet/aot 9.0.101 |
csharp | 3.cs | 156ms | 4.5ms | 39.9MB | 140ms | 3ms | dotnet 9.0.101 |
java | 1b-m.java | 168ms | 7.4ms | 51.1MB | 263ms | 17ms | openjdk 23 |
java | 1b-m.java | 170ms | 15ms | 49.4MB | 277ms | 13ms | openjdk 21 |
java | 1a-m.java | 174ms | 1.1ms | 51.2MB | 267ms | 17ms | openjdk 21 |
java | 1-m.java | 178ms | 1.8ms | 82.0MB | 243ms | 27ms | openjdk 21 |
java | 1-m.java | 181ms | 5.7ms | 87.0MB | 250ms | 27ms | openjdk 23 |
java | 1a-m.java | 183ms | 9.6ms | 53.2MB | 283ms | 17ms | openjdk 23 |
java | 1-m.java | 188ms | 1.2ms | 117.5MB | 273ms | 50ms | graal/jvm 17.0.8 |
java | 1a-m.java | 205ms | 3.9ms | 100.0MB | 310ms | 33ms | graal/jvm 17.0.8 |
java | 1b-m.java | 215ms | 23ms | 105.6MB | 353ms | 43ms | graal/jvm 17.0.8 |
java | 1a.java | 293ms | 9.5ms | 49.8MB | 270ms | 133ms | openjdk/zgc 21 |
java | 1b.java | 303ms | 9.4ms | 49.6MB | 287ms | 133ms | openjdk/zgc 21 |
java | 1.java | 319ms | 10ms | 114.2MB | 250ms | 153ms | openjdk/zgc 21 |
java | 2-m.java | 516ms | 21ms | 556.8MB | 793ms | 73ms | openjdk 21 |
java | 2-m.java | 532ms | 10ms | 751.9MB | 800ms | 93ms | openjdk 23 |
csharp | 1.cs | 538ms | 3.9ms | 25.3MB | 520ms | 7ms | mono 6.12.0 |
java | 2.java | 1560ms | 7.7ms | 1436.9MB | 800ms | 1043ms | openjdk/zgc 21 |