Ubuntu : Intel® Q6600® quad-core |
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 |
| reverse-complement | ± | ± | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| regex-dna | ± | ± | ± | |
| fasta | ± | ± | ± | |
| chameneos-redux | 2× | 2× | ± | |
| fannkuch | 2× | 8× | ± | |
| k-nucleotide | 3× | ± | ± | |
| pidigits | 4× | 13× | 1/3 | |
± 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 |
|---|---|---|---|---|---|
| reverse-complement | |||||
| Scala | 2.40 | 2.34 | 400,424 | 505 | 2% 3% 2% 97% |
| Java 6 -server | 2.98 | 2.94 | 473,712 | 592 | 1% 94% 4% 2% |
| n-body | |||||
| Scala | 24.26 | 24.28 | 14,392 | 1420 | 84% 0% 0% 16% |
| Java 6 -server | 25.03 | 25.03 | 12,408 | 1424 | 100% 0% 0% 0% |
| spectral-norm | |||||
| Scala | 17.23 | 4.47 | 16,760 | 720 | 96% 98% 95% 96% |
| Java 6 -server | 15.95 | 4.11 | 12,552 | 950 | 97% 97% 98% 97% |
| binary-trees | |||||
| Scala | 34.11 | 21.21 | 292,472 | 536 | 64% 29% 43% 24% |
| Java 6 -server | 29.63 | 19.18 | 289,920 | 603 | 24% 75% 27% 28% |
| mandelbrot | |||||
| Scala | 49.68 | 12.65 | 44,488 | 737 | 98% 99% 98% 97% |
| Java 6 -server | 43.12 | 10.95 | 48,920 | 903 | 98% 98% 99% 98% |
| regex-dna | |||||
| Scala | 33.15 | 14.89 | 802,148 | 659 | 38% 41% 52% 92% |
| Java 6 -server | 30.64 | 12.27 | 665,900 | 929 | 51% 54% 71% 74% |
| fasta | |||||
| Scala | 9.40 | 9.37 | 13,108 | 1207 | 0% 0% 1% 100% |
| Java 6 -server | 7.50 | 7.49 | 12,648 | 1240 | 0% 1% 99% 0% |
| chameneos-redux | |||||
| Scala | 48.10 | 15.36 | 21,656 | 1171 | 63% 67% 83% 72% |
| Java 6 -server | 22.80 | 8.24 | 12,592 | 1377 | 50% 54% 84% 73% |
| fannkuch | |||||
| Scala | 132.57 | 36.01 | 105,476 | 1001 | 90% 91% 94% 91% |
| Java 6 -server | 66.26 | 18.43 | 13,776 | 1150 | 78% 77% 98% 99% |
| k-nucleotide | |||||
| Scala | 120.61 | 39.80 | 608,340 | 1287 | 78% 75% 75% 74% |
| Java 6 -server | 47.53 | 14.24 | 762,548 | 1602 | 80% 80% 95% 79% |
| pidigits | |||||
| Scala | 20.07 | 17.76 | 383,612 | 632 | 5% 5% 10% 93% |
| Java 6 -server | 12.95 | 5.00 | 28,624 | 1816 | 61% 59% 57% 55% |
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/