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

2022-10-20 00:26:15

Speed comparison results

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

plot

Raw results

name version median min max accuracy
Julia (AOT compiled) 1.8.2 252.82 252.25 254.87 0.8235
C++ (g++) 11.2.1 253.57 250.78 258.48 0.7222
C (gcc) 11.2.1 266.11 256.45 277.64 0.7222
Rust 1.60.0 358.23 354.85 372.72 0.7222
Crystal 1.6.0 476.17 470.38 483.19 0.7647
Fortran 90 11.2.0 476.75 471.19 490.69 0.3462
Nim 1.6.6 478.45 471.35 479.39 0.7222
LuaJIT 2.1.0 480.96 476.42 481.18 0.7222
Go 1.19.1 481.34 471.72 482.45 0.7647
Swift 5.7 484.62 482.63 506.16 0.7222
Java 19.36 524.76 521.85 525.56 0.7647
Javascript (nodejs) 18.9.1 555.63 539.15 558.41 0.7647
C# 7.0.100 555.93 552.88 567.63 0.7647
Julia 1.8.2 568.27 564.03 593.02 0.7778
Python (PyPy) 3.9.12 688.93 677.44 692.1 0.7778
R 4.2.0 987.56 972.24 1023.74 0.8889
Clojure 1.11.1.1165 2307.8 2296.65 2370.88 0.7647
Elixir 1.13.4 3084.72 3048.33 3085.34 0.5556
PHP 8.1.11 3277.55 3180.76 3294.74 0.7222
Lua 5.4.4 6002.7 5948.13 6392.05 0.7222
Python (CPython) 3.10.5 12518.72 12489.09 12587.5 0.7778
Ruby 3.1.2 13770.0 13576.99 14154.96 0.7647
Perl 5.34.1 14509.28 14506.87 14555.01 0.7647
Clojure (Babashka) 1.0.164 37518.24 37422.82 37633.19 0.7647