Ubuntu : Intel® Q6600® quad-core |
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.
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 | |
| pidigits | 1/4 | 3× | ± | |
| reverse-complement | 1/2 | ± | ± | |
| regex-dna | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| fasta | ± | ± | ± | |
| fannkuch | ± | 11× | ± | |
| k-nucleotide | 2× | 2× | ± | |
| chameneos-redux | 2× | 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 ~ 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 | |||||
| Scala | 18.25 | 16.38 | 623,964 | 632 | 12% 6% 7% 87% |
| Java 6 -server | 59.18 | 58.03 | 240,912 | 800 | 34% 23% 31% 14% |
| reverse-complement | |||||
| Scala | 2.27 | 2.21 | 401,060 | 505 | 7% 1% 92% 4% |
| Java 6 -server | 3.38 | 3.32 | 473,716 | 592 | 0% 2% 1% 98% |
| regex-dna | |||||
| Scala | 30.32 | 10.56 | 675,368 | 732 | 63% 70% 84% 69% |
| Java 6 -server | 29.50 | 11.81 | 694,708 | 929 | 87% 54% 54% 55% |
| binary-trees | |||||
| Scala | 14.70 | 12.16 | 496,468 | 536 | 66% 19% 21% 15% |
| Java 6 -server | 14.13 | 11.68 | 460,636 | 603 | 28% 24% 55% 14% |
| n-body | |||||
| Scala | 25.03 | 25.02 | 14,584 | 1420 | 71% 0% 0% 28% |
| Java 6 -server | 23.70 | 23.74 | 12,608 | 1424 | 0% 100% 0% 0% |
| spectral-norm | |||||
| Scala | 16.81 | 4.36 | 17,156 | 720 | 95% 96% 98% 96% |
| Java 6 -server | 15.93 | 4.07 | 12,736 | 950 | 97% 100% 98% 97% |
| mandelbrot | |||||
| Scala | 52.01 | 13.16 | 44,448 | 737 | 98% 99% 100% 99% |
| Java 6 -server | 45.21 | 11.54 | 44,768 | 903 | 98% 98% 98% 99% |
| fasta | |||||
| Scala | 9.45 | 9.40 | 13,484 | 1207 | 0% 85% 15% 1% |
| Java 6 -server | 7.75 | 7.72 | 12,808 | 1240 | 1% 100% 0% 1% |
| fannkuch | |||||
| Scala | 87.85 | 22.99 | 146,372 | 1001 | 96% 96% 97% 93% |
| Java 6 -server | 65.43 | 17.94 | 13,940 | 1150 | 99% 99% 99% 68% |
| k-nucleotide | |||||
| Scala | 67.96 | 21.69 | 885,852 | 1287 | 74% 74% 72% 92% |
| Java 6 -server | 46.28 | 13.60 | 476,316 | 1602 | 86% 92% 81% 81% |
| chameneos-redux | |||||
| Scala | 29.08 | 10.14 | 30,556 | 1171 | 60% 37% 89% 80% |
| Java 6 -server | 13.67 | 5.82 | 12,952 | 1377 | 59% 50% 54% 60% |
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.
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 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/