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/48 | 1/2 | ||
| k-nucleotide | 1/7 | ± | 1/3 | |
| reverse-complement | 1/4 | ± | 1/2 | |
| partial-sums | ± | 1/3 | ± | |
| pidigits | 2× | 1/3 | 1/2 | |
| fannkuch | 2× | 1/3 | 1/2 | |
| nsieve-bits | 2× | 1/3 | 1/2 | |
| n-body | 3× | 1/5 | ± | |
| mandelbrot | 3× | 1/2 | 1/2 | |
| fasta | 3× | 1/3 | 1/2 | |
| nsieve | 7× | 7× | ± | |
| spectral-norm | 8× | ± | 1/2 | |
| binary-trees | 10× | 2× | ± | |
| recursive | 11× | 1/4 | ± | |
± 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.28 | 22,196 | 0 | ||
| Java 6 -Xint | 61.42 | 48,248 | 711 | ||
| k-nucleotide | |||||
| Perl | 27.54 | 42,836 | 359 | ||
| Java 6 -Xint | 181.61 | 62,544 | 1052 | ||
| reverse-complement | |||||
| Perl | 1.99 | 38,356 | 298 | ||
| Java 6 -Xint | 8.95 | 35,024 | 588 | ||
| partial-sums | |||||
| Perl | 14.23 | 3,156 | 389 | ||
| Java 6 -Xint | 12.83 | 8,128 | 470 | ||
| pidigits | |||||
| Perl | 6.21 | 3,144 | 385 | ||
| Java 6 -Xint | 3.24 | 8,976 | 938 | ||
| fannkuch | |||||
| Perl | 5.14 | 3,144 | 348 | ||
| Java 6 -Xint | 2.54 | 8,116 | 543 | ||
| nsieve-bits | |||||
| Perl | 22.27 | 3,156 | 253 | ||
| Java 6 -Xint | 9.21 | 8,936 | 517 | ||
| n-body | |||||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| Java 6 -Xint | 622.66 | 8,676 | 1430 | ||
| mandelbrot | |||||
| Perl | 15.33 | 3,388 | 311 | ||
| Java 6 -Xint | 4.64 | 8,324 | 623 | ||
| fasta | |||||
| Perl | 734.24 | 3,156 | 791 | ||
| Java 6 -Xint | 212.24 | 8,152 | 1240 | ||
| nsieve | |||||
| Perl | 29.34 | 121,924 | 290 | ||
| Java 6 -Xint | 4.31 | 17,340 | 293 | ||
| spectral-norm | |||||
| Perl | 3,943.63 | 18,536 | 334 | ||
| Java 6 -Xint | 494.09 | 24,784 | 514 | ||
| binary-trees | |||||
| Perl | 224.06 | 37,588 | 481 | ||
| Java 6 -Xint | 23.48 | 20,344 | 603 | ||
| recursive | |||||
| Perl | 31.60 | 2,144 | 380 | ||
| Java 6 -Xint | 2.99 | 8,296 | 427 | ||
| chameneos-redux | |||||
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 i486-linux-gnu-thread-multi
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/