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

C++ GNU g++ 1.30 

Lisaac 1.31 

D Digital Mars 1.62 

Clean 1.80 

Oberon-2 OO2C 1.862

Eiffel SmartEiffel 2.18 

SML MLton 2.24 

BASIC FreeBASIC 2.37 

CAL 2.66 

Nice 2.89 

SML SML/NJ 3.553

Forth bigForth 3.92 

Mercury 4.852

Forth GNU GForth 13.09 

Pike 21.56 

Groovy 38.47 

Icon 45.833

Tcl 53.94 

Prolog YAP 57.234

Prolog SWI 74.894

Rebol 476.895

Io 1624.266
measureweight
Time secs
Memory KB
Code B
benchmarkweight
n-body

fannkuch (deprecated)

meteor-contest

fasta

spectral-norm

reverse-complement

mandelbrot

k-nucleotide

regex-dna

pidigits

chameneos-redux

thread-ring

binary-trees

hello-world

sum-file

nsieve

nsieve-bits

partial-sums

recursive

 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