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 |
---|---|---|---|---|---|---|---|
cpp | 0-i.cpp | 158ms | 1.3ms | 1.5MB | 150ms | 0ms | g++ 11.4.0 |
rust | 4-i.rs | 160ms | 3.5ms | 1.8MB | 150ms | 0ms | rustc 1.83.0 |
cpp | 0-i.cpp | 168ms | 2.5ms | 2.3MB | 160ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
rust | 7-i.rs | 228ms | 2.2ms | 1.8MB | 220ms | 0ms | rustc 1.83.0 |
rust | 1.rs | 228ms | 5.2ms | 1.8MB | 213ms | 0ms | rustc 1.83.0 |
c | 8-i.c | 233ms | 2.3ms | 1.5MB | 223ms | 0ms | zigcc 0.13.0 |
zig | 2.zig | 258ms | 1.8ms | 1.1MB | 247ms | 0ms | zig 0.13.0 |
rust | 2.rs | 263ms | 1.3ms | 1.8MB | 253ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 269ms | 1.6ms | 1.9MB | 257ms | 0ms | rustc 1.85.0-nightly |
c | 5.c | 280ms | 2.5ms | 1.5MB | 270ms | 0ms | zigcc 0.13.0 |
c | 8-i.c | 289ms | 1.5ms | 2.1MB | 280ms | 0ms | clang 14.0.0-1ubuntu1.1 |
c | 2.c | 291ms | 2.9ms | 2.3MB | 280ms | 0ms | gcc 14.2.0 |
cpp | 1.cpp | 294ms | 0.7ms | 1.8MB | 280ms | 0ms | g++ 11.4.0 |
v | 1.v | 296ms | 4.6ms | 2.3MB | 283ms | 0ms | v/clang+gc 0.4.9 |
c | 2.c | 297ms | 4.6ms | 1.5MB | 287ms | 0ms | zigcc 0.13.0 |
cpp | 1.cpp | 298ms | 3.2ms | 2.3MB | 287ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
v | 1.v | 298ms | 1.3ms | 1.6MB | 287ms | 0ms | v/clang 0.4.9 |
zig | 1.zig | 300ms | 6.3ms | 1.3MB | 290ms | 0ms | zig 0.13.0 |
c | 5.c | 300ms | 5.4ms | 2.3MB | 287ms | 0ms | gcc 14.2.0 |
c | 5.c | 301ms | 3.6ms | 2.1MB | 293ms | 0ms | clang 14.0.0-1ubuntu1.1 |
nim | 2.nim | 302ms | 2.8ms | 1.8MB | 290ms | 0ms | nim 2.2.0 |
c | 2.c | 303ms | 3.9ms | 2.1MB | 293ms | 0ms | clang 14.0.0-1ubuntu1.1 |
chapel | 2.chpl | 310ms | 1.1ms | 32.8MB | 300ms | 0ms | chpl 1.31.0 |
c | 8-i.c | 317ms | 4.6ms | 2.3MB | 307ms | 0ms | gcc 14.2.0 |
crystal | 1.cr | 327ms | 5.3ms | 3.4MB | 313ms | 0ms | crystal 1.14.0 |
crystal | 2.cr | 327ms | 8.1ms | 3.4MB | 313ms | 0ms | crystal 1.14.0 |
swift | 7.swift | 329ms | 4.6ms | 9.6MB | 317ms | 0ms | swift 6.0.3 |
nim | 2.nim | 330ms | 8.5ms | 2.0MB | 320ms | 0ms | nim/clang 2.2.0 |
go | 1.go | 331ms | 6.3ms | 0.1MB | 323ms | 0ms | tinygo 0.35.0 |
odin | 1.odin | 332ms | 2.6ms | 1.5MB | 323ms | 0ms | odin 2024 |
odin | 1-i.odin | 338ms | 4.3ms | 1.5MB | 327ms | 0ms | odin 2024 |
d | 1.d | 340ms | 2.8ms | 2.9MB | 327ms | 0ms | ldc2 1.40.0 |
d | 2.d | 342ms | 3.2ms | 2.9MB | 330ms | 0ms | ldc2 1.40.0 |
csharp | 9.cs | 342ms | 4.6ms | 34.1MB | 320ms | 7ms | dotnet 9.0.101 |
go | 1.go | 344ms | 2.0ms | 3.4MB | 337ms | 0ms | go 1.23.4 |
csharp | 8.cs | 350ms | 0.8ms | 15.8MB | 340ms | 0ms | dotnet/aot 9.0.101 |
ocaml | 1.ml | 351ms | 2.4ms | 5.2MB | 340ms | 0ms | ocaml 5.2.1 |
wasm | 1.rs | 376ms | 1.9ms | 18.8MB | 363ms | 0ms | wasmtime 28.0.0 |
kotlin | 1n.kt | 386ms | 8.6ms | 4.7MB | 373ms | 0ms | kotlin/native 1.8.21 |
dart | 3.dart | 395ms | 1.7ms | 6.1MB | 383ms | 0ms | dart/exe 3.6.0 |
csharp | 8.cs | 410ms | 17ms | 33.9MB | 390ms | 0ms | dotnet 9.0.101 |
java | 1.java | 417ms | 2.4ms | 45.2MB | 450ms | 13ms | openjdk 21 |
java | 1.java | 420ms | 6.1ms | 48.2MB | 450ms | 20ms | openjdk 23 |
kotlin | 1.kt | 422ms | 3.5ms | 49.7MB | 463ms | 13ms | kotlin/jvm 21 |
java | 1.java | 429ms | 7.0ms | 85.0MB | 457ms | 27ms | graal/jvm 17.0.8 |
javascript | 6.js | 442ms | 11ms | 59.8MB | 427ms | 7ms | node 23.5.0 |
typescript | 6.ts | 449ms | 12ms | 57.7MB | 433ms | 3ms | deno 2.1.4 |
java | 1.java | 530ms | 6.4ms | 46.5MB | 450ms | 130ms | openjdk/zgc 21 |
wasm | 2.rs | 550ms | 2.4ms | 18.8MB | 537ms | 3ms | wasmtime 28.0.0 |
javascript | 6.js | 628ms | 10ms | 44.6MB | 627ms | 3ms | bun 1.1.42 |
d | 1.d | 642ms | 10ms | 4.6MB | 630ms | 0ms | dmd 2.109.1 |
lua | 4.lua | 677ms | 3.8ms | 2.3MB | 670ms | 0ms | luajit 2.1.0-beta3 |
ruby | 2.rb | 801ms | 6.0ms | 328.7MB | 1027ms | 110ms | truffleruby 24.1.1 |
haxe | 2.hx | 808ms | 2.6ms | 5.0MB | 800ms | 0ms | haxe/hl/c 4.3.6 |
haxe | 1.hx | 1008ms | 28ms | 5.0MB | 997ms | 0ms | haxe/hl/c 4.3.6 |
java | 2.java | 1166ms | 4.4ms | 571.8MB | 1293ms | 77ms | openjdk 21 |
java | 2.java | 1187ms | 9.7ms | 717.8MB | 1287ms | 90ms | openjdk 23 |
csharp | 8.cs | 1189ms | 27ms | 24.1MB | 1163ms | 7ms | mono 6.12.0 |
codon | 1.py | 1232ms | 11ms | 5.8MB | 1220ms | 0ms | codon 0.17.0 |
python | 2.py | 1278ms | 0.7ms | 59.8MB | 1253ms | 10ms | pypy 3.10.14 |
haxe | 3.hx | 1319ms | 19ms | 25.6MB | 1433ms | 43ms | haxe/cpp 4.3.6 |
d | 2.d | 1931ms | 36ms | 4.6MB | 1923ms | 0ms | dmd 2.109.1 |
haxe | 2.hx | 2282ms | 22ms | 5.7MB | 2270ms | 0ms | haxe/hl/jit 1.14.0 |
haxe | 1.hx | 2328ms | 4.3ms | 5.7MB | 2317ms | 0ms | haxe/hl/jit 1.14.0 |
python | 1.py | 2492ms | 13ms | 56.6MB | 2467ms | 10ms | pypy 3.10.14 |
java | 2.java | 3101ms | 57ms | 2431.6MB | 1560ms | 1743ms | openjdk/zgc 21 |
haxe | 1.hx | timeout | 0.0ms | 4.4MB | 4987ms | 0ms | haxe/cpp 4.3.6 |
haxe | 2.hx | timeout | 0.0ms | 4.4MB | 4987ms | 0ms | haxe/cpp 4.3.6 |
haxe | 3.hx | timeout | 0.0ms | 5.2MB | 3857ms | 1647ms | haxe/hl/c 4.3.6 |
haxe | 3.hx | timeout | 0.0ms | 5.9MB | 4097ms | 1367ms | haxe/hl/jit 1.14.0 |
lua | 4.lua | timeout | 0.0ms | 2.3MB | 4987ms | 0ms | lua 5.4.7 |
perl | 2.pl | timeout | 0.0ms | 6.1MB | 4987ms | 0ms | perl 5.40.0 |
python | 1.py | timeout | 0.0ms | 8.6MB | 4983ms | 0ms | cpython 3.13.1 |
python | 2.py | timeout | 0.0ms | 8.8MB | 4987ms | 0ms | cpython 3.13.1 |
python | 1.py | timeout | 0.0ms | 8.3MB | 4987ms | 0ms | pyston 3.8.12 |
python | 2.py | timeout | 0.0ms | 8.1MB | 4990ms | 0ms | pyston 3.8.12 |
ruby | 2.rb | timeout | 0.0ms | 12.9MB | 4980ms | 3ms | ruby 3.4.1 |
ruby | 2.rb | timeout | 0.0ms | 13.6MB | 4980ms | 3ms | ruby/yjit 3.4.1 |
lang | code | time | stddev | peak-mem mem | time(user) | time(sys) | compiler compiler/runtime |
---|---|---|---|---|---|---|---|
cpp | 0-i.cpp | 17ms | 0.2ms | 1.5MB | 10ms | 0ms | g++ 11.4.0 |
rust | 4-i.rs | 18ms | 0.7ms | 1.8MB | 10ms | 0ms | rustc 1.83.0 |
cpp | 0-i.cpp | 18ms | 0.1ms | 2.3MB | 10ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
rust | 1.rs | 25ms | 0.4ms | 1.8MB | 17ms | 0ms | rustc 1.83.0 |
rust | 7-i.rs | 25ms | 0.7ms | 1.8MB | 20ms | 0ms | rustc 1.83.0 |
c | 8-i.c | 26ms | 0.1ms | 1.5MB | 20ms | 0ms | zigcc 0.13.0 |
zig | 2.zig | 27ms | 0.1ms | 1.1MB | 20ms | 0ms | zig 0.13.0 |
rust | 2.rs | 28ms | 0.0ms | 1.8MB | 20ms | 0ms | rustc 1.83.0 |
rust | 3.rs | 28ms | 0.1ms | 1.8MB | 20ms | 0ms | rustc 1.85.0-nightly |
c | 5.c | 30ms | 0.2ms | 1.5MB | 20ms | 0ms | zigcc 0.13.0 |
c | 8-i.c | 30ms | 0.4ms | 2.1MB | 20ms | 0ms | clang 14.0.0-1ubuntu1.1 |
c | 2.c | 31ms | 0.4ms | 1.5MB | 20ms | 0ms | zigcc 0.13.0 |
c | 2.c | 31ms | 0.4ms | 2.3MB | 20ms | 0ms | gcc 14.2.0 |
v | 1.v | 32ms | 0.9ms | 1.6MB | 23ms | 0ms | v/clang 0.4.9 |
cpp | 1.cpp | 32ms | 0.4ms | 1.8MB | 20ms | 0ms | g++ 11.4.0 |
c | 5.c | 32ms | 0.8ms | 2.1MB | 20ms | 0ms | clang 14.0.0-1ubuntu1.1 |
c | 5.c | 32ms | 0.5ms | 2.3MB | 20ms | 0ms | gcc 14.2.0 |
nim | 2.nim | 32ms | 0.5ms | 1.8MB | 20ms | 0ms | nim 2.2.0 |
c | 2.c | 33ms | 1.7ms | 2.1MB | 23ms | 0ms | clang 14.0.0-1ubuntu1.1 |
cpp | 1.cpp | 33ms | 0.7ms | 2.3MB | 23ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
v | 1.v | 33ms | 0.9ms | 2.3MB | 23ms | 0ms | v/clang+gc 0.4.9 |
c | 8-i.c | 33ms | 0.3ms | 2.3MB | 23ms | 0ms | gcc 14.2.0 |
zig | 1.zig | 33ms | 0.3ms | 1.3MB | 23ms | 0ms | zig 0.13.0 |
go | 1.go | 34ms | 0.8ms | 0.1MB | 20ms | 0ms | tinygo 0.35.0 |
nim | 2.nim | 35ms | 0.9ms | 2.0MB | 23ms | 0ms | nim/clang 2.2.0 |
odin | 1-i.odin | 36ms | 0.1ms | 1.5MB | 30ms | 0ms | odin 2024 |
crystal | 2.cr | 36ms | 0.6ms | 3.4MB | 23ms | 0ms | crystal 1.14.0 |
crystal | 1.cr | 36ms | 0.8ms | 3.4MB | 30ms | 0ms | crystal 1.14.0 |
odin | 1.odin | 37ms | 0.6ms | 1.5MB | 30ms | 0ms | odin 2024 |
d | 1.d | 37ms | 0.2ms | 2.9MB | 30ms | 0ms | ldc2 1.40.0 |
swift | 7.swift | 37ms | 0.6ms | 9.8MB | 23ms | 0ms | swift 6.0.3 |
d | 2.d | 37ms | 0.2ms | 2.9MB | 30ms | 0ms | ldc2 1.40.0 |
go | 1.go | 38ms | 0.5ms | 3.4MB | 30ms | 0ms | go 1.23.4 |
ocaml | 1.ml | 40ms | 1.6ms | 5.2MB | 30ms | 0ms | ocaml 5.2.1 |
kotlin | 1n.kt | 43ms | 0.8ms | 4.6MB | 30ms | 0ms | kotlin/native 1.8.21 |
dart | 3.dart | 43ms | 0.6ms | 6.3MB | 30ms | 0ms | dart/exe 3.6.0 |
csharp | 8.cs | 44ms | 0.9ms | 15.7MB | 30ms | 0ms | dotnet/aot 9.0.101 |
wasm | 1.rs | 46ms | 1.3ms | 18.9MB | 30ms | 0ms | wasmtime 28.0.0 |
chapel | 2.chpl | 49ms | 1.1ms | 32.9MB | 43ms | 0ms | chpl 1.31.0 |
wasm | 2.rs | 62ms | 1.3ms | 20.8MB | 50ms | 0ms | wasmtime 28.0.0 |
d | 1.d | 67ms | 2.1ms | 4.8MB | 60ms | 0ms | dmd 2.109.1 |
javascript | 6.js | 72ms | 1.0ms | 59.9MB | 57ms | 3ms | node 23.5.0 |
lua | 4.lua | 72ms | 3.0ms | 2.3MB | 60ms | 0ms | luajit 2.1.0-beta3 |
typescript | 6.ts | 73ms | 0.2ms | 59.1MB | 60ms | 7ms | deno 2.1.4 |
javascript | 6.js | 82ms | 1.6ms | 44.8MB | 83ms | 3ms | bun 1.1.42 |
haxe | 2.hx | 85ms | 2.3ms | 5.0MB | 77ms | 0ms | haxe/hl/c 4.3.6 |
csharp | 9.cs | 96ms | 16ms | 34.0MB | 70ms | 7ms | dotnet 9.0.101 |
haxe | 1.hx | 103ms | 1.4ms | 5.0MB | 93ms | 0ms | haxe/hl/c 4.3.6 |
csharp | 8.cs | 108ms | 14ms | 33.9MB | 77ms | 3ms | dotnet 9.0.101 |
java | 1.java | 111ms | 2.5ms | 45.2MB | 137ms | 20ms | openjdk 21 |
kotlin | 1.kt | 112ms | 0.7ms | 49.4MB | 150ms | 17ms | kotlin/jvm 21 |
java | 1.java | 112ms | 0.7ms | 87.3MB | 130ms | 30ms | graal/jvm 17.0.8 |
java | 1.java | 114ms | 1.2ms | 48.5MB | 140ms | 20ms | openjdk 23 |
codon | 1.py | 131ms | 4.2ms | 7.7MB | 120ms | 0ms | codon 0.17.0 |
haxe | 3.hx | 147ms | 2.7ms | 27.6MB | 143ms | 10ms | haxe/cpp 4.3.6 |
csharp | 8.cs | 155ms | 4.8ms | 22.5MB | 143ms | 0ms | mono 6.12.0 |
python | 2.py | 165ms | 1.2ms | 57.8MB | 143ms | 10ms | pypy 3.10.14 |
d | 2.d | 198ms | 2.4ms | 4.8MB | 190ms | 0ms | dmd 2.109.1 |
java | 1.java | 230ms | 5.1ms | 46.5MB | 150ms | 133ms | openjdk/zgc 21 |
haxe | 2.hx | 232ms | 2.0ms | 5.7MB | 220ms | 0ms | haxe/hl/jit 1.14.0 |
haxe | 1.hx | 240ms | 7.9ms | 5.7MB | 230ms | 0ms | haxe/hl/jit 1.14.0 |
python | 1.py | 284ms | 2.2ms | 56.6MB | 267ms | 3ms | pypy 3.10.14 |
java | 2-m.java | 289ms | 6.3ms | 348.4MB | 407ms | 70ms | openjdk 23 |
java | 2-m.java | 293ms | 18ms | 355.0MB | 440ms | 30ms | openjdk 21 |
ruby | 2-m.rb | 305ms | 2.6ms | 328.7MB | 530ms | 113ms | truffleruby 24.1.1 |
haxe | 3.hx | 628ms | 2.6ms | 5.2MB | 487ms | 190ms | haxe/hl/c 4.3.6 |
haxe | 2.hx | 633ms | 1.3ms | 4.4MB | 620ms | 0ms | haxe/cpp 4.3.6 |
java | 2.java | 658ms | 2.3ms | 536.9MB | 437ms | 403ms | openjdk/zgc 21 |
haxe | 3.hx | 732ms | 7.5ms | 5.8MB | 587ms | 197ms | haxe/hl/jit 1.14.0 |
haxe | 1.hx | 761ms | 7.6ms | 4.4MB | 753ms | 0ms | haxe/cpp 4.3.6 |
python | 1.py | 892ms | 9.1ms | 8.3MB | 883ms | 0ms | pyston 3.8.12 |
ruby | 2.rb | 999ms | 5.7ms | 13.6MB | 980ms | 3ms | ruby/yjit 3.4.1 |
lua | 4.lua | 1042ms | 22ms | 2.3MB | 1033ms | 0ms | lua 5.4.7 |
python | 2.py | 1234ms | 13ms | 8.3MB | 1220ms | 0ms | pyston 3.8.12 |
perl | 2.pl | 2623ms | 40ms | 6.3MB | 2613ms | 0ms | perl 5.40.0 |
ruby | 2.rb | 2623ms | 37ms | 12.9MB | 2607ms | 3ms | ruby 3.4.1 |
python | 1.py | 2829ms | 9.3ms | 8.8MB | 2813ms | 0ms | cpython 3.13.1 |
python | 2.py | 3043ms | 23ms | 8.8MB | 3030ms | 0ms | cpython 3.13.1 |