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

2022-10-17 12:32:16

Speed comparison results

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

plot

Raw results

name version average accuracy
Go 1.19.1 120.595 0.7647058823529411
Nim 1.6.6 124.846 0.7222222222222222
C++ (g++) 11.2.1 125.71499999999999 0.7222222222222222
Rust 1.60.0 126.138 0.7222222222222222
C (gcc) 11.2.1 130.099 0.7222222222222222
Julia (AOT compiled) 1.8.2 135.299 0.7647058823529411
Swift 5.7 140.254 0.7222222222222222
Fortran 90 (gfortran) 11.2.1 140.65800000000002 0.65
LuaJIT 2.1.0 172.744 0.7222222222222222
Crystal 1.4.1 182.115 0.7647058823529411
Java 19.36 197.304 0.7647058823529411
Python (PyPy) 3.9.12 264.053 0.7222222222222222
Javascript (nodejs) 18.9.1 368.333 0.7647058823529411
Julia 1.8.2 411.661 0.7647058823529411
R 4.2.0 1106.7800000000002 0.8888888888888888
PHP 8.1.11 2887.085 0.7222222222222222
Elixir 1.13.4 2902.049 0.5555555555555556
Clojure 1.11.1.1165 3000.9190000000003 0.6666666666666666
Lua 5.4.4 5484.631 0.7222222222222222
Ruby 3.1.2 11334.257000000001 0.7647058823529411
Clojure (Babashka) 0.10.163 12155.237 0.6666666666666666
Perl 5.34.1 13555.18 0.7647058823529411
Python (CPython) 3.10.5 17031.77 0.7222222222222222