/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-core |
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 7 -server program.
Look at speed another way - look at a box plot of Time-used data.
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 7 -server program.
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| pidigits | ± | 1/14 | 1/5 | |
| regex-dna | ± | 1/5 | 1/2 | |
| reverse-complement | 2× | ± | 1/6 | |
| k-nucleotide | 9× | 5× | 1/4 | |
| spectral-norm | 65× | 1/2 | ± | |
| fasta | 66× | 1/7 | 1/2 | |
| n-body | 71× | 1/7 | ± | |
| binary-trees | 78× | 1/2 | 1/2 | |
| mandelbrot | 123× | ± | ± | |
| fannkuch-redux | 187× | 1/10 | 1/3 | |
| Perl used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 2× | 66× | 78× | 187× | 187× |
± 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 7 -server program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| pidigits | |||||
| Perl | 6.34 | 6.35 | 3,428 | 385 | 0% 0% 100% 0% |
| Java 7 -server | 12.36 | 5.16 | 47,348 | 1826 | 60% 61% 61% 54% |
| regex-dna | |||||
| Perl | 34.97 | 13.53 | 140,216 | 527 | 78% 40% 81% 61% |
| Java 7 -server | 28.92 | 10.07 | 708,180 | 929 | 65% 64% 83% 76% |
| reverse-complement | |||||
| Perl | 3.27 | 3.29 | 385,400 | 284 | 0% 1% 100% 1% |
| Java 7 -server | 2.88 | 1.52 | 294,656 | 1661 | 56% 74% 46% 16% |
| k-nucleotide | |||||
| Perl | 274.66 | 80.11 | 1,764,968 | 648 | 85% 77% 94% 88% |
| Java 7 -server | 34.65 | 9.39 | 381,176 | 2431 | 92% 89% 97% 92% |
| spectral-norm | |||||
| Perl | 1,094.59 | 275.14 | 7,624 | 846 | 100% 100% 99% 99% |
| Java 7 -server | 16.38 | 4.21 | 14,556 | 950 | 97% 97% 99% 98% |
| fasta | |||||
| Perl | 319.86 | 320.18 | 2,004 | 934 | 0% 0% 100% 0% |
| Java 7 -server | 4.95 | 4.86 | 14,976 | 1507 | 1% 0% 100% 1% |
| n-body | |||||
| Perl | 1,733.08 | 1,733.45 | 2,004 | 1140 | 87% 0% 13% 0% |
| Java 7 -server | 24.37 | 24.34 | 13,932 | 1424 | 0% 0% 0% 100% |
| binary-trees | |||||
| Perl | 761.37 | 761.72 | 289,732 | 448 | 0% 0% 100% 0% |
| Java 7 -server | 23.89 | 9.78 | 532,932 | 1007 | 61% 77% 45% 63% |
| mandelbrot | |||||
| Perl | 3,381.13 | 850.28 | 80,424 | 592 | 100% 100% 99% 100% |
| Java 7 -server | 27.15 | 6.89 | 67,832 | 796 | 98% 99% 99% 99% |
| fannkuch-redux | |||||
| Perl | 3,210.13 | 3,210.87 | 1,480 | 457 | 0% 38% 0% 62% |
| Java 7 -server | 67.73 | 17.13 | 14,208 | 1282 | 98% 99% 99% 100% |
| fasta-redux | |||||
| Java 7 -server | 0.13 | 0.11 | ? | 1443 | 9% 18% 10% 90% |
Remember - those are just the fastest Perl and Java 7 -server 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 7 -server 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 5, version 14, subversion 0 (v5.14.0) built for i686-linux-thread-multi
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
optimize='-O2'
Compare to built for i686-linux
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/