x64 Ubuntu : Intel® Q6600® one 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 | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | ± | ± | ± | |
| fasta | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| fannkuch | ± | ± | 1/2 | |
| regex-dna | ± | ± | ± | |
| k-nucleotide | 2× | 2× | ± | |
| pidigits | 2× | 35× | ± | |
| chameneos-redux | 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.33 | 2.35 | 402,976 | 505 | 0% 0% 0% 99% |
| Java 6 -server | 2.66 | 2.71 | 475,772 | 592 | 0% 1% 0% 97% |
| binary-trees | |||||
| Scala | 17.75 | 17.77 | 577,388 | 536 | 4% 0% 0% 100% |
| Java 6 -server | 18.51 | 18.55 | 565,112 | 603 | 0% 0% 0% 100% |
| n-body | |||||
| Scala | 23.07 | 23.08 | 17,864 | 1420 | 0% 0% 0% 100% |
| Java 6 -server | 23.18 | 23.18 | 15,088 | 1424 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Scala | 16.57 | 16.62 | 16,484 | 500 | 0% 0% 0% 100% |
| Java 6 -server | 16.61 | 16.62 | 15,868 | 514 | 0% 0% 0% 100% |
| fasta | |||||
| Scala | 9.16 | 9.16 | 15,368 | 1207 | 0% 0% 0% 100% |
| Java 6 -server | 8.33 | 8.36 | 14,580 | 1240 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Scala | 48.67 | 48.67 | 46,860 | 737 | 0% 0% 0% 100% |
| Java 6 -server | 41.28 | 41.29 | 66,940 | 903 | 0% 0% 0% 100% |
| fannkuch | |||||
| Scala | 90.79 | 90.80 | 15,852 | 473 | 0% 0% 0% 100% |
| Java 6 -server | 72.68 | 72.68 | 17,460 | 1150 | 0% 0% 0% 100% |
| regex-dna | |||||
| Scala | 32.27 | 32.32 | 972,872 | 659 | 0% 0% 0% 100% |
| Java 6 -server | 25.35 | 25.40 | 683,724 | 929 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Scala | 87.73 | 87.82 | 902,212 | 1287 | 0% 0% 0% 100% |
| Java 6 -server | 55.75 | 55.78 | 368,424 | 1602 | 0% 0% 0% 100% |
| pidigits | |||||
| Scala | 11.64 | 11.67 | 623,052 | 632 | 0% 0% 0% 100% |
| Java 6 -server | 6.93 | 6.96 | 18,020 | 938 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| Scala | 12.01 | 12.02 | 37,600 | 1171 | 0% 0% 0% 100% |
| Java 6 -server | 3.88 | 3.91 | 41,280 | 1756 | 0% 0% 0% 99% |
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/