÷

 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
 pidigits1/4±
 reverse-complement1/2±±
 regex-dna±±±
 binary-trees±±±
 n-body±±±
 spectral-norm±±±
 mandelbrot±±±
 fasta±±±
 fannkuch±11×±
 k-nucleotide±
 chameneos-redux±

± 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
 pidigits 
Scala18.2516.38623,964632  12% 6% 7% 87%
Java 6 -server59.1858.03240,912800  34% 23% 31% 14%
 reverse-complement 
Scala2.272.21401,060505  7% 1% 92% 4%
Java 6 -server3.383.32473,716592  0% 2% 1% 98%
 regex-dna 
Scala30.3210.56675,368732  63% 70% 84% 69%
Java 6 -server29.5011.81694,708929  87% 54% 54% 55%
 binary-trees 
Scala14.7012.16496,468536  66% 19% 21% 15%
Java 6 -server14.1311.68460,636603  28% 24% 55% 14%
 n-body 
Scala25.0325.0214,5841420  71% 0% 0% 28%
Java 6 -server23.7023.7412,6081424  0% 100% 0% 0%
 spectral-norm 
Scala16.814.3617,156720  95% 96% 98% 96%
Java 6 -server15.934.0712,736950  97% 100% 98% 97%
 mandelbrot 
Scala52.0113.1644,448737  98% 99% 100% 99%
Java 6 -server45.2111.5444,768903  98% 98% 98% 99%
 fasta 
Scala9.459.4013,4841207  0% 85% 15% 1%
Java 6 -server7.757.7212,8081240  1% 100% 0% 1%
 fannkuch 
Scala87.8522.99146,3721001  96% 96% 97% 93%
Java 6 -server65.4317.9413,9401150  99% 99% 99% 68%
 k-nucleotide 
Scala67.9621.69885,8521287  74% 74% 72% 92%
Java 6 -server46.2813.60476,3161602  86% 92% 81% 81%
 chameneos-redux 
Scala29.0810.1430,5561171  60% 37% 89% 80%
Java 6 -server13.675.8212,9521377  59% 50% 54% 60%

 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.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

  Home   Flawed   Fastest   License   Help