÷

 Step 1 : Are the Scala programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Scala program used compared to the fastest Java 6 -server program.


 Step 2 : Are the Scala programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

Each table row shows, for one named benchmark, how much the fastest Scala program used compared to the fastest Java 6 -server program.

 Scala used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 reverse-complement±±±
 binary-trees±±±
 n-body±±±
 spectral-norm±±±
 fasta±±±
 mandelbrot±±±
 fannkuch±±1/2
 regex-dna±±±
 k-nucleotide±
 pidigits35×±
 chameneos-redux±±

± read the measurements and then read the program source code.

 Step 3 : Are the Scala programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Scala program are shown for comparison against measurements of the fastest Java 6 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 reverse-complement 
Scala2.332.35402,976505  0% 0% 0% 99%
Java 6 -server2.662.71475,772592  0% 1% 0% 97%
 binary-trees 
Scala17.7517.77577,388536  4% 0% 0% 100%
Java 6 -server18.5118.55565,112603  0% 0% 0% 100%
 n-body 
Scala23.0723.0817,8641420  0% 0% 0% 100%
Java 6 -server23.1823.1815,0881424  0% 0% 0% 100%
 spectral-norm 
Scala16.5716.6216,484500  0% 0% 0% 100%
Java 6 -server16.6116.6215,868514  0% 0% 0% 100%
 fasta 
Scala9.169.1615,3681207  0% 0% 0% 100%
Java 6 -server8.338.3614,5801240  0% 0% 0% 100%
 mandelbrot 
Scala48.6748.6746,860737  0% 0% 0% 100%
Java 6 -server41.2841.2966,940903  0% 0% 0% 100%
 fannkuch 
Scala90.7990.8015,852473  0% 0% 0% 100%
Java 6 -server72.6872.6817,4601150  0% 0% 0% 100%
 regex-dna 
Scala32.2732.32972,872659  0% 0% 0% 100%
Java 6 -server25.3525.40683,724929  0% 0% 0% 100%
 k-nucleotide 
Scala87.7387.82902,2121287  0% 0% 0% 100%
Java 6 -server55.7555.78368,4241602  0% 0% 0% 100%
 pidigits 
Scala11.6411.67623,052632  0% 0% 0% 100%
Java 6 -server6.936.9618,020938  0% 0% 0% 100%
 chameneos-redux 
Scala12.0112.0237,6001171  0% 0% 0% 100%
Java 6 -server3.883.9141,2801756  0% 0% 0% 99%

 Measurements for all the accepted programs

 Scala : higher-order type-safe programming for jvm 

Scala compiler version 2.7.7.final -- Copyright 2002-2009, LAMP/EPFL

Online book: Programming in Scala pdf

A Scala Tutorial for Java programmers pdf

Home Page: http://scala.epfl.ch/

Download: http://scala.epfl.ch/downloads/index.html

Revised BSD license