÷

 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.


 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±±±
 spectral-norm±±±
 binary-trees±±±
 fasta±±±
 mandelbrot±±±
 regex-dna±±±
 fannkuch±15×±
 chameneos-redux±±
 pidigits12×1/3
 k-nucleotide±

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

 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.31403,140505  97% 0% 2% 3%
Java 6 -server2.712.67475,908592  3% 1% 94% 3%
 n-body 
Scala23.0423.0317,9201420  0% 0% 100% 0%
Java 6 -server23.1323.1315,1001424  0% 0% 0% 100%
 spectral-norm 
Scala17.664.5620,720720  96% 96% 97% 98%
Java 6 -server17.334.5115,208950  98% 95% 94% 97%
 binary-trees 
Scala20.5316.95555,044536  14% 12% 83% 12%
Java 6 -server20.5316.18566,032603  13% 86% 16% 11%
 fasta 
Scala8.989.0116,0481207  95% 0% 0% 5%
Java 6 -server8.248.2215,1441240  0% 1% 0% 100%
 mandelbrot 
Scala50.9812.8746,960737  99% 99% 99% 99%
Java 6 -server42.0210.6966,984903  98% 98% 98% 99%
 regex-dna 
Scala30.6213.47747,292659  71% 63% 47% 44%
Java 6 -server26.6710.91681,824929  57% 68% 63% 55%
 fannkuch 
Scala88.8023.89268,9801001  92% 93% 90% 95%
Java 6 -server68.4719.0917,5841150  81% 97% 74% 99%
 chameneos-redux 
Scala44.5114.7537,3841171  62% 60% 76% 75%
Java 6 -server12.578.6441,2881756  37% 45% 15% 40%
 pidigits 
Scala12.8410.87622,340632  7% 9% 93% 8%
Java 6 -server14.155.7950,5081816  49% 60% 52% 56%
 k-nucleotide 
Scala91.3927.61981,3361287  89% 79% 82% 79%
Java 6 -server49.2214.57480,4081602  79% 78% 98% 82%

 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