÷

 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±±±
 n-body±±±
 chameneos-redux±±±
 binary-trees±±±
 spectral-norm±±±
 regex-dna±±±
 mandelbrot±±±
 fasta±±±
 fannkuch±1/2
 k-nucleotide±
 pidigits26×±

± 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.372.39400,184505  0% 0% 0% 99%
Java 6 -server2.862.90473,280592  0% 1% 0% 99%
 n-body 
Scala24.3024.3314,3401420  0% 1% 0% 100%
Java 6 -server25.0525.0812,4121424  1% 0% 0% 100%
 chameneos-redux 
Scala12.9312.9419,3401171  0% 0% 0% 100%
Java 6 -server12.4512.4717,8761429  0% 0% 0% 100%
 binary-trees 
Scala29.9730.09256,064536  0% 0% 0% 100%
Java 6 -server28.2128.35255,460603  0% 0% 0% 99%
 spectral-norm 
Scala17.1217.1316,544720  0% 0% 0% 100%
Java 6 -server15.9115.9312,564950  0% 0% 0% 100%
 regex-dna 
Scala33.6233.63548,496659  0% 8% 0% 100%
Java 6 -server29.3529.37689,108929  0% 0% 0% 100%
 mandelbrot 
Scala49.2349.2744,180737  0% 0% 0% 100%
Java 6 -server41.5641.5748,900903  0% 0% 0% 100%
 fasta 
Scala9.669.6612,8481207  0% 0% 0% 100%
Java 6 -server7.507.5112,2481240  0% 0% 0% 100%
 fannkuch 
Scala108.56108.5713,080473  0% 0% 0% 100%
Java 6 -server66.7966.8313,7961150  0% 0% 0% 100%
 k-nucleotide 
Scala116.00116.03607,9681287  0% 0% 0% 100%
Java 6 -server46.9046.95351,0041602  0% 0% 0% 100%
 pidigits 
Scala18.0718.09382,336632  0% 0% 0% 100%
Java 6 -server5.475.4714,828938  1% 3% 0% 100%

 Measurements for all the accepted programs

 Scala : higher-order type-safe programming for jvm 

Scala code runner 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