÷

 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
 binary-trees±±
 recursive±±
 spectral-norm±±
 partial-sums±±
 fasta±±
 n-body±±
 k-nucleotide±±±
 nsieve±±±
 mandelbrot±±
 nsieve-bits±±±
 fannkuch±
 regex-dna±±
 reverse-complement±
 pidigits1/2

± 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
 binary-trees 
Scala4.8054,684536  
Java 6 -server6.8926,808603  
 recursive 
Scala6.5320,184411  
Java 6 -server6.7612,044427  
 spectral-norm 
Scala24.6519,576500  
Java 6 -server24.0110,008514  
 partial-sums 
Scala10.0619,684485  
Java 6 -server9.158,488474  
 fasta 
Scala23.8719,5961207  
Java 6 -server21.469,1841240  
 n-body 
Scala16.4320,7961420  
Java 6 -server14.7511,5241424  
 k-nucleotide 
Scala17.8654,5641039  
Java 6 -server15.8970,9641052  
 nsieve 
Scala2.9824,380392  
Java 6 -server2.2520,592296  
 mandelbrot 
Scala4.3419,332454  
Java 6 -server3.2411,092623  
 nsieve-bits 
Scala6.9219,796390  
Java 6 -server5.0413,364523  
 fannkuch 
Scala16.9219,188473  
Java 6 -server11.058,884555  
 regex-dna 
Scala12.4192,956663  
Java 6 -server7.8175,892921  
 reverse-complement 
Scala2.4253,4321086  
Java 6 -server1.3058,932592  
 pidigits 
Scala11.5925,804461  
Java 6 -server1.928,992938  
 chameneos-redux
ScalaFailed
 sum-file
ScalaFailed

 Measurements for all the accepted programs

 Scala : higher-order type-safe programming for jvm 

Scala code runner version 2.7.1.final -- Copyright 2002-2008, 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