/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.40 

Fortran Intel 1.463

ATS 1.60 

Java 7 averaged 1.634

Java 7 -server 1.88 

Ada 2005 GNAT 1.93 

Pascal Free Pascal 2.442

Scala 2.59 

Haskell GHC 2.87 

Lisp SBCL 3.09 

OCaml 3.121

Clean 3.233

C# Mono 3.56 

F# Mono 4.043

Racket 4.82 

Go 5.101

JavaScript V8 6.763

Clojure 8.11 

Erlang HiPE 12.55 

Smalltalk VisualWorks 18.071

Python 3 28.10 

PHP 28.352

Lua 28.911

Perl 30.041

Ruby JRuby 32.85 

Ruby 1.9 34.59 

Mozart/Oz 41.063

C CINT 331.686
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