÷

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

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

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 ~ speed and size.

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
 binary-trees±±
 spectral-norm±±
 fasta±±
 n-body±±
 k-nucleotide±±±
 nsieve±±±
 regex-dna±±
 nsieve-bits±
 reverse-complement±
 partial-sums±
 recursive±
 mandelbrot±
 fannkuch±
 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 ~ speed and size.

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  
 spectral-norm 
Scala24.6519,576500  
Java 6 -server24.0110,008514  
 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  
 regex-dna 
Scala12.4192,956663  
Java 6 -server7.8175,892921  
 nsieve-bits 
Scala1.9019,452390  
Java 6 -server1.0611,480523  
 reverse-complement 
Scala2.4253,4321086  
Java 6 -server1.3058,932592  
 partial-sums 
Scala10.0619,684485  
Java 6 -server4.8810,648711  
 recursive 
Scala1.1419,480411  
Java 6 -server0.4811,628427  
 mandelbrot 
Scala0.9619,328454  
Java 6 -server0.3310,944623  
 fannkuch 
Scala0.9219,192473  
Java 6 -server0.288,872555  
 pidigits 
Scala2.1425,384461  
Java 6 -server0.238,720938  
 chameneos-redux 
ScalaFailed
Java 6 -server0.4612,0721429  

 Step 4 : Are there other Scala programs for these benchmarks?

Remember - those are just the fastest Scala and Java 6 -server programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Scala.

Maybe one of those other Scala programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Scala and Java 6 -server programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 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

  Home   Flawed   Fastest   License   Help