÷

 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-complement1/2±±
 binary-trees±±±
 partial-sums±±±
 nsieve-bits±±±
 nsieve±10×±
 spectral-norm±±±
 n-body±±±
 mandelbrot±±±
 k-nucleotide±±±
 fasta±±±
 recursive±±± 7
 fannkuch±1/2
 sum-file±±
 regex-dna±±
 pidigits14×1/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
 reverse-complement 
Scala2.2932,4841086  
Java 6 -server3.6446,700863  
 binary-trees 
Scala6.4431,756536  
Java 6 -server7.5624,012603  
 partial-sums 
Scala5.9714,084493  
Java 6 -server6.859,460470  
 nsieve-bits 
Scala4.5015,892390  
Java 6 -server5.1312,204517  
 nsieve 
Scala3.99200,428392  
Java 6 -server4.0319,824452  
 spectral-norm 
Scala27.2728,312464  
Java 6 -server27.1526,424514  
 n-body 
Scala28.5115,4761430  
Java 6 -server27.5410,8881430  
 mandelbrot 
Scala7.0712,032454  
Java 6 -server6.629,984623  
 k-nucleotide 
Scala18.3350,3321046  
Java 6 -server15.7566,5401052  
 fasta 
Scala23.5912,2681207  
Java 6 -server19.9610,0961240  
 recursive N = 7 reduced workload 
Scala0.8413,220420  
Java 6 -server0.689,652427  
 fannkuch 
Scala15.4614,852473  
Java 6 -server11.799,888761  
 sum-file 
Scala9.3228,388172  
Java 6 -server4.7822,872222  
 regex-dna 
Scala12.8576,960663  
Java 6 -server4.0652,248711  
 pidigits 
Scala45.1029,796461  
Java 6 -server3.3111,728938  
 chameneos-redux
ScalaFailed

 Measurements for all the accepted programs

 Scala : higher-order type-safe programming for jvm 

 

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