Current benchmark data was generated on Sat Nov 16 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 |
---|---|---|---|---|---|---|---|
go | 1.go | 0.7ms | 0.1ms | 0.1MB | 0ms | 0ms | tinygo 0.34.0 |
cpp | 1.cpp | 1.0ms | 0.0ms | 1.4MB | 0ms | 0ms | g++ 11.4.0 |
zig | 1.zig | 1.0ms | 0.0ms | 1.3MB | 0ms | 0ms | zig 0.13.0 |
v | 1.v | 1.1ms | 0.1ms | 1.4MB | 0ms | 0ms | v/clang 0.4.8 |
c | 1.c | 1.1ms | 0.1ms | 1.4MB | 0ms | 0ms | zigcc 0.13.0 |
nim | 1.nim | 1.1ms | 0.0ms | 1.9MB | 0ms | 0ms | nim/clang 2.2.0 |
nim | 1.nim | 1.2ms | 0.1ms | 1.6MB | 0ms | 0ms | nim 2.2.0 |
odin | 1.odin | 1.2ms | 0.1ms | 1.6MB | 0ms | 0ms | odin 2024 |
c | 1.c | 1.2ms | 0.1ms | 2.1MB | 0ms | 0ms | gcc 14.2.0 |
rust | 1.rs | 1.3ms | 0.1ms | 1.8MB | 0ms | 0ms | rustc 1.84.0-nightly |
rust | 1.rs | 1.3ms | 0.1ms | 1.8MB | 0ms | 0ms | rustc 1.82.0 |
v | 1.v | 1.4ms | 0.1ms | 1.9MB | 0ms | 0ms | v/clang+gc 0.4.8 |
cpp | 1.cpp | 1.4ms | 0.1ms | 2.3MB | 0ms | 0ms | clang++ 14.0.0-1ubuntu1.1 |
c | 1.c | 1.4ms | 0.3ms | 2.1MB | 0ms | 0ms | clang 14.0.0-1ubuntu1.1 |
lua | 1.lua | 1.4ms | 0.1ms | 2.4MB | 0ms | 0ms | luajit 2.1.0-beta3 |
go | 1.go | 1.4ms | 0.1ms | 3.4MB | 0ms | 0ms | go 1.23.3 |
lua | 1.lua | 1.5ms | 0.2ms | 2.1MB | 0ms | 0ms | lua 5.4.7 |
d | 1.d | 1.7ms | 0.2ms | 2.9MB | 0ms | 0ms | ldc2 1.39.0 |
ocaml | 1.ml | 1.8ms | 0.1ms | 5.0MB | 0ms | 0ms | ocaml 5.2.0 |
haxe | 1.hx | 2.2ms | 0.3ms | 4.7MB | 0ms | 0ms | haxe/hl/c 4.3.6 |
crystal | 1.cr | 2.2ms | 0.2ms | 3.1MB | 0ms | 0ms | crystal 1.14.0 |
kotlin | 1.kt | 2.3ms | 0.2ms | 4.7MB | 0ms | 0ms | kotlin/native 1.8.21 |
d | 1.d | 2.3ms | 0.3ms | 5.1MB | 0ms | 0ms | dmd 2.109.1 |
haxe | 1.hx | 2.6ms | 0.1ms | 4.4MB | 0ms | 0ms | haxe/cpp 4.3.6 |
perl | 1.pl | 2.7ms | 0.4ms | 5.1MB | 0ms | 0ms | perl 5.40.0 |
swift | 1.swift | 3.1ms | 0.4ms | 7.8MB | 0ms | 0ms | swift 6.0.2 |
haxe | 1.hx | 3.7ms | 0.3ms | 5.3MB | 0ms | 0ms | haxe/hl/jit 1.14.0 |
dart | 1.dart | 4.2ms | 0.2ms | 6.1MB | 0ms | 0ms | dart/exe 3.5.4 |
acton | 1.act | 4.3ms | 0.4ms | 8.0MB | 0ms | 0ms | actonc 0.24.1 |
codon | 1.py | 4.6ms | 0.6ms | 7.4MB | 0ms | 0ms | codon 0.17.0 |
wasm | 1.rs | 6.6ms | 0.3ms | 19.0MB | 0ms | 0ms | wasmtime 25.0.3 |
csharp | 1.cs | 9.1ms | 5.6ms | 15.6MB | 0ms | 0ms | dotnet/aot 9.0.100 |
python | 1.py | 11ms | 0.9ms | 7.6MB | 10ms | 0ms | pyston 3.8.12 |
javascript | 1.js | 13ms | 0.6ms | 31.4MB | 0ms | 0ms | bun 1.1.34 |
python | 1.py | 14ms | 1.1ms | 8.5MB | 0ms | 0ms | cpython 3.13.0 |
chapel | 1.chpl | 16ms | 0.3ms | 32.8MB | 10ms | 0ms | chpl 1.31.0 |
typescript | 1.ts | 26ms | 0.7ms | 46.9MB | 10ms | 4ms | deno 2.0.6 |
python | 1.py | 29ms | 1.0ms | 51.0MB | 10ms | 10ms | pypy 3.10.14 |
javascript | 1.js | 30ms | 0.1ms | 52.1MB | 10ms | 10ms | node 23.1.0 |
csharp | 1.cs | 31ms | 0.9ms | 23.4MB | 20ms | 0ms | mono 6.12.0 |
csharp | 1.cs | 35ms | 0.6ms | 32.3MB | 20ms | 6ms | dotnet 9.0.100 |
ruby | 1.rb | 38ms | 0.2ms | 164.1MB | 18ms | 24ms | truffleruby 24.1.1 |
php | 1.php | 50ms | 1.7ms | 52.6MB | 20ms | 18ms | php 8.2.25 |
kotlin | 1.kt | 55ms | 4.0ms | 47.5MB | 58ms | 14ms | kotlin/jvm 21 |
java | 1.java | 64ms | 3.0ms | 58.5MB | 62ms | 24ms | graal/jvm 17.0.8 |
ruby | 1.rb | 68ms | 1.2ms | 28.1MB | 40ms | 16ms | ruby/yjit 3.3.6 |
java | 1.java | 68ms | 5.7ms | 44.4MB | 68ms | 20ms | openjdk 23 |
ruby | 1.rb | 71ms | 0.4ms | 27.9MB | 44ms | 16ms | ruby 3.3.6 |
java | 1.java | 71ms | 3.9ms | 43.8MB | 72ms | 22ms | openjdk 21 |
java | 1.java | 186ms | 3.8ms | 44.8MB | 76ms | 136ms | openjdk/zgc 21 |