OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 Perl program used compared to the fastest Java 6 -Xint 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 Perl program used compared to the fastest Java 6 -Xint program.
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 1/106 | 1/3 | 1/2 | |
| k-nucleotide | 1/5 | 1/2 | 1/3 | |
| reverse-complement | 1/4 | ± | 1/2 | |
| partial-sums | ± | 1/5 | 1/2 | |
| pidigits | 3× | 1/3 | 1/2 | |
| fannkuch | 3× | 1/5 | 1/2 | |
| n-body | 4× | 1/5 | ± | |
| mandelbrot | 4× | 1/6 | 1/2 | |
| nsieve-bits | 5× | 1/5 | 1/2 | |
| fasta | 5× | 1/4 | 1/2 | |
| spectral-norm | 6× | 1/4 | 1/2 | |
| nsieve | 9× | 6× | ± | |
| binary-trees | 11× | 2× | ± | |
| recursive | 11× | 1/5 | ± | |
± 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 Perl program are shown for comparison against measurements of the fastest Java 6 -Xint program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Perl | 1.23 | 22,120 | 471 | ||
| Java 6 -Xint | 130.26 | 66,972 | 921 | ||
| k-nucleotide | |||||
| Perl | 32.07 | 42,816 | 359 | ||
| Java 6 -Xint | 174.59 | 68,312 | 1052 | ||
| reverse-complement | |||||
| Perl | 1.99 | 38,360 | 298 | ||
| Java 6 -Xint | 8.63 | 57,188 | 592 | ||
| partial-sums | |||||
| Perl | 17.41 | 1,476 | 389 | ||
| Java 6 -Xint | 13.19 | 7,120 | 711 | ||
| pidigits | |||||
| Perl | 0.54 | 2,404 | 385 | ||
| Java 6 -Xint | 0.21 | 7,716 | 938 | ||
| fannkuch | |||||
| Perl | 5.81 | 1,492 | 348 | ||
| Java 6 -Xint | 1.68 | 7,092 | 555 | ||
| n-body | |||||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| Java 6 -Xint | 400.61 | 9,556 | 1424 | ||
| mandelbrot | |||||
| Perl | 15.93 | 1,532 | 311 | ||
| Java 6 -Xint | 3.68 | 9,388 | 665 | ||
| nsieve-bits | |||||
| Perl | 24.21 | 2,132 | 253 | ||
| Java 6 -Xint | 4.63 | 10,000 | 423 | ||
| fasta | |||||
| Perl | 773.42 | 1,856 | 791 | ||
| Java 6 -Xint | 146.29 | 7,152 | 1240 | ||
| spectral-norm | |||||
| Perl | 4,089.08 | 2,468 | 334 | ||
| Java 6 -Xint | 660.73 | 10,584 | 514 | ||
| nsieve | |||||
| Perl | 25.45 | 121,904 | 290 | ||
| Java 6 -Xint | 2.99 | 19,388 | 296 | ||
| binary-trees | |||||
| Perl | 239.36 | 47,936 | 541 | ||
| Java 6 -Xint | 21.46 | 24,364 | 603 | ||
| recursive | |||||
| Perl | 36.28 | 2,080 | 380 | ||
| Java 6 -Xint | 3.18 | 9,752 | 427 | ||
| chameneos-redux | |||||
| Java 6 -Xint | 0.73 | 10,332 | 1429 | ||
Remember - those are just the fastest Perl and Java 6 -Xint programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Perl.
Maybe one of those other Perl programs is fastest on a different OS/machine.
Remember - those are just the fastest Perl and Java 6 -Xint 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.
This is perl, v5.8.8 built for i686-linux-thread-multi
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/