OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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 | ± | 2× | ± | |
| recursive | ± | 2× | ± | |
| spectral-norm | ± | 2× | ± | |
| partial-sums | ± | 2× | ± | |
| fasta | ± | 2× | ± | |
| n-body | ± | 2× | ± | |
| k-nucleotide | ± | ± | ± | |
| nsieve | ± | ± | ± | |
| mandelbrot | ± | 2× | ± | |
| nsieve-bits | ± | ± | ± | |
| fannkuch | 2× | 2× | ± | |
| regex-dna | 2× | ± | ± | |
| reverse-complement | 2× | ± | 2× | |
| pidigits | 6× | 3× | 1/2 | |
± read the measurements and then read the program source code.
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 | |||||
| Scala | 4.80 | 54,684 | 536 | ||
| Java 6 -server | 6.89 | 26,808 | 603 | ||
| recursive | |||||
| Scala | 6.53 | 20,184 | 411 | ||
| Java 6 -server | 6.76 | 12,044 | 427 | ||
| spectral-norm | |||||
| Scala | 24.65 | 19,576 | 500 | ||
| Java 6 -server | 24.01 | 10,008 | 514 | ||
| partial-sums | |||||
| Scala | 10.06 | 19,684 | 485 | ||
| Java 6 -server | 9.15 | 8,488 | 474 | ||
| fasta | |||||
| Scala | 23.87 | 19,596 | 1207 | ||
| Java 6 -server | 21.46 | 9,184 | 1240 | ||
| n-body | |||||
| Scala | 16.43 | 20,796 | 1420 | ||
| Java 6 -server | 14.75 | 11,524 | 1424 | ||
| k-nucleotide | |||||
| Scala | 17.86 | 54,564 | 1039 | ||
| Java 6 -server | 15.89 | 70,964 | 1052 | ||
| nsieve | |||||
| Scala | 2.98 | 24,380 | 392 | ||
| Java 6 -server | 2.25 | 20,592 | 296 | ||
| mandelbrot | |||||
| Scala | 4.34 | 19,332 | 454 | ||
| Java 6 -server | 3.24 | 11,092 | 623 | ||
| nsieve-bits | |||||
| Scala | 6.92 | 19,796 | 390 | ||
| Java 6 -server | 5.04 | 13,364 | 523 | ||
| fannkuch | |||||
| Scala | 16.92 | 19,188 | 473 | ||
| Java 6 -server | 11.05 | 8,884 | 555 | ||
| regex-dna | |||||
| Scala | 12.41 | 92,956 | 663 | ||
| Java 6 -server | 7.81 | 75,892 | 921 | ||
| reverse-complement | |||||
| Scala | 2.42 | 53,432 | 1086 | ||
| Java 6 -server | 1.30 | 58,932 | 592 | ||
| pidigits | |||||
| Scala | 11.59 | 25,804 | 461 | ||
| Java 6 -server | 1.92 | 8,992 | 938 | ||
| chameneos-redux | |||||
| Scala | |||||
| sum-file | |||||
| Scala | |||||
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/