language-bench

Languages

Each language is benchmarked in a pinned official Docker image, for several releases and several build settings.

Bunawaiting first run

JavaScript on JavaScriptCore (WebKit) with a tiered JIT, running the same sources as Node.js.

Latest: 1.4 · 5 versions · 2 build settings

Results & version timeline →

C

C compiled ahead-of-time by GCC. The classic performance baseline: no runtime, no garbage collector, manual memory management.

Latest: 16 · 12 versions · 3 build settings

Results & version timeline →

C++awaiting first run

C++ compiled ahead-of-time by g++ (GCC). Zero-cost abstractions and a rich standard library, with RAII-based memory management.

Latest: 16 · 12 versions · 3 build settings

Results & version timeline →

C#awaiting first run

C# on .NET (CoreCLR): compiled to IL, then tiered JIT-compiled with dynamic PGO, with a generational garbage collector.

Latest: 11.0 · 6 versions · 2 build settings

Results & version timeline →

Dartawaiting first run

Dart compiled ahead-of-time to a native executable (or run on the JIT VM), with a generational garbage collector and isolates for parallelism.

Latest: 3.14 · 6 versions · 2 build settings

Results & version timeline →

Denoawaiting first run

Deno runs TypeScript directly on V8 (type-stripped, not type-checked at run time): the same JIT-compiled engine as Node.js and Chrome, with a different runtime and standard library.

Latest: 2.9.8 · 5 versions · 2 build settings

Results & version timeline →

Elixirawaiting first run

Elixir on the Erlang VM (BEAM): immutable data, per-process garbage collection, preemptive lightweight processes and a JIT-compiled emulator. Scripts are compiled in memory on every start.

Latest: 1.20 · 7 versions · 2 build settings

Results & version timeline →

Fortranawaiting first run

Fortran compiled ahead-of-time by gfortran (GCC): the original array-oriented numerical language, with column-major arrays, no garbage collector and OpenMP for threads. Its standard library has no hash map, sort or JSON parser, so those programs carry small hand-written versions.

Latest: 16 · 6 versions · 2 build settings

Results & version timeline →

F#awaiting first run

F# on .NET (CoreCLR): a functional-first language compiled to IL, then tiered JIT-compiled with dynamic PGO, with a generational garbage collector. These programs use the imperative subset (mutable locals and arrays) in the hot loops.

Latest: 11.0 · 6 versions · 2 build settings

Results & version timeline →

Go

Go compiled ahead-of-time by the gc toolchain, with a concurrent garbage collector and goroutines.

Latest: 1.27 · 5 versions · 2 build settings

Results & version timeline →

Haskellawaiting first run

Haskell compiled ahead-of-time by GHC: lazy, purely functional, with a generational copying garbage collector and green threads on top of the multi-threaded runtime.

Latest: 9.14 · 6 versions · 2 build settings

Results & version timeline →

Javaawaiting first run

Java on the OpenJDK HotSpot JVM (Eclipse Temurin builds): bytecode with tiered JIT compilation and a generational, mostly concurrent garbage collector.

Latest: 27 · 8 versions · 2 build settings

Results & version timeline →

Juliaawaiting first run

Julia: dynamically typed, compiled just-in-time through LLVM with multiple dispatch, so start-up includes compilation of every method that runs.

Latest: 1.13 · 6 versions · 3 build settings

Results & version timeline →

Luaawaiting first run

The reference Lua interpreter: a small register-based bytecode VM with an incremental garbage collector and tables as the only data structure.

Latest: 5.5 · 3 versions · 1 build setting

Results & version timeline →

Nimawaiting first run

Nim compiles to C and then to native code: Python-like syntax, static types, and reference-counted memory management (ARC/ORC) by default since 2.0 instead of a tracing collector.

Latest: 2.4 · 4 versions · 2 build settings

Results & version timeline →

Node.jsawaiting first run

JavaScript on the V8 engine with a JIT compiler and a generational garbage collector.

Latest: 26 · 6 versions · 2 build settings

Results & version timeline →

OCamlawaiting first run

OCaml compiled to native code by ocamlopt: strict, statically typed, with a fast generational garbage collector and an optimiser that does little inlining unless flambda is enabled.

Latest: 5.6 · 5 versions · 2 build settings

Results & version timeline →

Perlawaiting first run

Perl 5: a bytecode-compiled interpreter with reference counting, strong built-in string and hash support and the original scripting-language regular expressions.

Latest: 5.44 · 6 versions · 1 build setting

Results & version timeline →

PHPawaiting first run

The Zend Engine: a bytecode virtual machine with reference counting and a cycle collector, run here through the command-line interpreter.

Latest: 8.6 · 8 versions · 1 build setting

Results & version timeline →

PyPyawaiting first run

PyPy: a Python 3 interpreter with a tracing just-in-time compiler (RPython), usually much faster than CPython on loops and numeric code at the price of a higher memory footprint and a slower start-up.

Latest: 3.12 · 4 versions · 1 build setting

Results & version timeline →

Python

The reference CPython interpreter: bytecode interpreter with reference counting and a cycle collector.

Latest: 3.15 · 10 versions · 1 build setting

Results & version timeline →

Rawaiting first run

GNU R: a bytecode-compiled interpreter built for vectorised statistics. Whole-vector operations call compiled C, scalar loops are slow, and every value is a heap-allocated vector.

Latest: 4.6.1 · 6 versions · 1 build setting

Results & version timeline →

Rubyawaiting first run

The reference CRuby (MRI) interpreter: bytecode VM with a global VM lock and a generational, incremental garbage collector. Optional YJIT compiler.

Latest: 4.0 · 10 versions · 2 build settings

Results & version timeline →

Rustawaiting first run

Rust compiled ahead-of-time by rustc (LLVM). Memory safety without a garbage collector.

Latest: 1.100 · 7 versions · 3 build settings

Results & version timeline →

Scalaawaiting first run

Scala 3 compiled to JVM bytecode by scalac and run on the HotSpot JVM (tiered JIT, generational garbage collector). The programs use while loops and arrays in the hot paths. Versions are Scala CLI releases, each with its default Scala 3 compiler.

Latest: 1.19.0 · 5 versions · 2 build settings

Results & version timeline →