/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 gcc 1.30 

C++ GNU g++ 1.30 

Fortran Intel 1.413

ATS 1.76 

Java 7 -server 1.82 

Ada 2005 GNAT 2.34 

Scala 2.48 

Haskell GHC 2.69 

OCaml 3.081

Pascal Free Pascal 3.601

Lisp SBCL 3.65 

C# Mono 3.66 

Go 4.87 

F# Mono 4.941

Racket 6.60 

Clojure 7.18 

Erlang HiPE 11.691

Python 3 27.34 

PHP 31.862

Perl 40.26 

Ruby 1.9 44.74 

Ruby JRuby 47.09 
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