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 | ± | ± | ± | |
| n-body | ± | ± | ± | |
| chameneos-redux | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| spectral-norm | ± | ± | ± | |
| regex-dna | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| fasta | ± | ± | ± | |
| fannkuch | 2× | ± | 1/2 | |
| k-nucleotide | 2× | 2× | ± | |
| pidigits | 3× | 26× | ± | |
± 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.37 | 2.39 | 400,184 | 505 | 0% 0% 0% 99% |
| Java 6 -server | 2.86 | 2.90 | 473,280 | 592 | 0% 1% 0% 99% |
| n-body | |||||
| Scala | 24.30 | 24.33 | 14,340 | 1420 | 0% 1% 0% 100% |
| Java 6 -server | 25.05 | 25.08 | 12,412 | 1424 | 1% 0% 0% 100% |
| chameneos-redux | |||||
| Scala | 12.93 | 12.94 | 19,340 | 1171 | 0% 0% 0% 100% |
| Java 6 -server | 12.45 | 12.47 | 17,876 | 1429 | 0% 0% 0% 100% |
| binary-trees | |||||
| Scala | 29.97 | 30.09 | 256,064 | 536 | 0% 0% 0% 100% |
| Java 6 -server | 28.21 | 28.35 | 255,460 | 603 | 0% 0% 0% 99% |
| spectral-norm | |||||
| Scala | 17.12 | 17.13 | 16,544 | 720 | 0% 0% 0% 100% |
| Java 6 -server | 15.91 | 15.93 | 12,564 | 950 | 0% 0% 0% 100% |
| regex-dna | |||||
| Scala | 33.62 | 33.63 | 548,496 | 659 | 0% 8% 0% 100% |
| Java 6 -server | 29.35 | 29.37 | 689,108 | 929 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Scala | 49.23 | 49.27 | 44,180 | 737 | 0% 0% 0% 100% |
| Java 6 -server | 41.56 | 41.57 | 48,900 | 903 | 0% 0% 0% 100% |
| fasta | |||||
| Scala | 9.66 | 9.66 | 12,848 | 1207 | 0% 0% 0% 100% |
| Java 6 -server | 7.50 | 7.51 | 12,248 | 1240 | 0% 0% 0% 100% |
| fannkuch | |||||
| Scala | 108.56 | 108.57 | 13,080 | 473 | 0% 0% 0% 100% |
| Java 6 -server | 66.79 | 66.83 | 13,796 | 1150 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Scala | 116.00 | 116.03 | 607,968 | 1287 | 0% 0% 0% 100% |
| Java 6 -server | 46.90 | 46.95 | 351,004 | 1602 | 0% 0% 0% 100% |
| pidigits | |||||
| Scala | 18.07 | 18.09 | 382,336 | 632 | 0% 0% 0% 100% |
| Java 6 -server | 5.47 | 5.47 | 14,828 | 938 | 1% 3% 0% 100% |
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/