Programming language benchmarks
Bun, C, C++, C#, Dart, Deno, Elixir, Fortran, F#, Go, Haskell, Java, Julia, Lua, Nim, Node.js, OCaml, Perl, PHP, PyPy, Python, R, Ruby, Rust and Scala measured on 11 workloads. Each benchmark is re-run on different days and different hardware; the numbers below combine 8 independent sessions across 2 CPU models. Click through to see exactly how any number came about.
Added, waiting for their first benchmark sessions: Bun, C++, C#, Dart, Deno, Elixir, Fortran, F#, Haskell, Java, Julia, Lua, Nim, Node.js, OCaml, Perl, PHP, PyPy, R, Ruby, Rust, Scala. They join the leaderboard automatically once CI has measured them.
| # | Language | Time (× vs best) | |
|---|---|---|---|
| 1 | C16 | 35.9 ms (1.00×) | |
| 2 | Go1.27 | 63.8 ms (1.78×) | |
| 3 | Python3.15 | 660 ms (18.4×) |
What is being tested
Binary Trees
Fannkuch-redux
File processing
Hash map
JSON parsing
Matrix multiply
N-Body simulation
Parallel reduction
Prime sieve
Sorting
String operations
How to read these numbers
Times are corrected for the speed of the machine (and the OS image) each session happened to run on, so sessions on different hardware can be combined. The number in brackets says how many times slower (or heavier) a language is than the best one in that table (1.0×). Hover a single-task value for its 95% confidence interval across sessions. See the methodology.
Frequently asked questions
Which programming language is the fastest?
Across the benchmark workloads, C is currently the fastest overall, followed by Go, Python. The leaderboard above shows the exact multipliers, per task and overall.
How are the benchmarks measured?
Each benchmark is a language version, a build setting and a problem. It runs on GitHub Actions in a pinned Docker image: the language's harness solves a fresh instance over and over for ten seconds and times only the solving, so start-up and input parsing do not count (end-to-end and cold times are reported too). Results from 8 sessions on different days and hardware are combined statistically, with machine speed factored out.
Can I trust these numbers?
Every number links to its source code, build flags, raw iterations and CI run. Ranges are 95% confidence intervals computed across independent sessions, and all raw data is open in the repository.