/mobile Handheld Friendly website

 How big is the difference between programming languages?

This chart shows 1 or 2 or 3 comparisons - Time-used and/or Memory-used and/or Code-used ~ speed and size.

Remember - these measurements are just of the fastest programs for each of these programming language implementations, measured on this OS/machine.

Selected and weighted "how many times more compared to the program that used least scores" are compressed into one number - ↓ a weighted geometric mean.

Select the weights you want to give each comparison and each benchmark then click the chart button.

Or follow the links to compare 2 language implementations directly - one-against-another for all the benchmarks - on Time-used, Memory-used and Code-used.

  compare 2 GM missing

C++ GNU g++ 1.30 

Fortran Intel 1.373

C GNU gcc 1.41 

ATS 1.66 

Ada 2005 GNAT 1.85 

Java 7 -server 2.09 

Lisp SBCL 2.19 

Haskell GHC 2.58 

Scala 2.73 

Pascal Free Pascal 3.041

Clean 3.124

OCaml 3.36 

Go 3.54 

C# Mono 3.87 

Clojure 4.73 

Racket 5.28 

F# Mono 5.711

JavaScript V8 6.313

Erlang HiPE 11.41 

PHP 23.463

Smalltalk VisualWorks 23.59 

Python 3 27.51 

Lua 30.771

Perl 31.621

Ruby JRuby 33.20 

Ruby 1.9 35.16 
measureweight
Time secs
Memory KB
Code B
benchmarkweight
n-body

fannkuch-redux

meteor-contest

fasta

fasta-redux

spectral-norm

reverse-complement

mandelbrot

k-nucleotide

regex-dna

pidigits

chameneos-redux

thread-ring

binary-trees

 Which programming language is best? The Weighted Geometric Mean

Read "How not to lie with statistics: the correct way to summarize benchmark results" (pdf).

For each benchmark, B is the best measurement.
For each language implementation, the best measurement L is then normalized to L ÷ B

GM is the Weighted Geometric Mean of those L ÷ B ratios.

missing : Language implementations with more than a couple of Timeouts (at the largest workload) distort the ranking - so they have been excluded. They can still be compared directly against another language implementation.


There are other ways to analyse and present this data: ask Which programming languages are fastest? or look for patterns in Code-used Time-used Shapes or take the Summary Data and do your own analysis!

Revised BSD license

  Home   Conclusions   License   Help