Skip to main content Link Search Menu Expand Document (external link)

2023-02-03 20:47:05

Speed comparison results

These are the latest speed comparison results of various programming languages.

plot

Raw results

name version median min max accuracy
C++ (avx2) 11.2.1 80.66 80.62 80.78 8.4969
C (clang) 13.0.1 80.81 80.74 80.94 8.4972
C (gcc) 11.2.1 84.53 80.76 90.03 8.4968
C++ (clang++) 13.0.1 81.63 80.79 84.91 8.4972
Nim 1.6.6 81.01 80.8 81.46 8.4975
C++ (g++) 11.2.1 86.58 80.88 88.73 8.4968
Julia (AOT compiled) 1.8.2 81.13 81.09 81.51 8.4971
D (LDC) 1.28.1 84.16 81.1 84.74 8.4972
D (GDC) 11.2.1 88.27 81.26 91.03 8.4968
Rust (nightly) 1.69.0 81.55 81.54 82.02 8.497
Fortran 90 12.1.0 82.01 81.69 82.22 8.4972
Zig 0.10.1 161.33 161.0 164.85 8.4972
Go 1.19.1 162.33 162.26 162.41 8.4972
Ada (gnat-gcc) 11.2.1 163.0 162.84 163.31 8.4971
Scala 3.2.1 163.84 163.81 163.9 8.4972
Rust 1.64.0 164.05 164.02 165.14 8.4972
Swift 5.7.3 166.9 166.64 167.26 8.4971
Pony(nightly) 14.0.3 167.44 166.92 174.54 8.4972
Pony 0.53.0 167.3 166.98 167.78 8.4972
LuaJIT 2.1.0 169.92 169.71 169.94 8.4971
Common Lisp (SBCL) 2.2.5 170.37 170.3 175.39 8.4972
Crystal 1.6.2 194.75 194.57 195.18 8.4971
Java 19.36 216.23 213.78 230.84 8.4972
C# 7.0.102 242.11 232.21 246.31 8.4972
Javascript (bun) 0.5.0 267.46 247.39 267.87 8.4972
Javascript (nodejs) 18.9.1 290.12 289.71 291.22 8.4972
Julia (ux4) 1.8.2 329.6 327.15 332.66 5.534
Julia 1.8.2 355.55 349.98 368.64 8.4971
Python (PyPy) 3.9.16 606.18 603.54 606.52 8.4972
Haskell (GHC) 9.4.3 751.37 751.36 751.38 8.4972
R 4.2.0 798.91 798.58 799.31 8.4971
Clojure 1.11.1.1208 1334.31 1247.96 1342.73 8.4972
Lua 5.4.4 1863.29 1856.48 1868.13 8.4971
PHP 8.1.14 2722.63 2697.05 2790.2 8.4972
Elixir 1.13.4 2804.22 2796.77 2810.36 8.4326
Python (CPython) 3.11.1 5191.76 5177.78 5225.8 8.4972
Ruby 3.1.3 12112.14 12093.42 12125.27 8.4971
Perl 5.34.1 12321.28 12278.19 12322.86 8.4971
Clojure (Babashka) 1.1.172 31749.86 31636.52 31783.89 8.4972