/mobile Handheld Friendly website

÷

 Step 1 : Are the Perl programs faster? At a glance.

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.

 Step 2 : Are the Perl programs faster? Approximately.

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
 regex-dna1/51/3
 reverse-complement±1/6
 k-nucleotide1/4
 fasta55×1/81/2
 spectral-norm57×1/2±
 n-body63×1/7±
 binary-trees71×±1/2
 mandelbrot112×±
 fannkuch-redux208×1/101/3
 Perl used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)57×71×163×208×

± read the measurements and then read the program source code.

 Step 3 : Are the Perl programs faster? Measurements.

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
 regex-dna 
Perl31.0810.40139,676527  69% 71% 71% 90%
Java 7 -server23.366.63636,9241410  92% 87% 88% 86%
 reverse-complement 
Perl2.882.89374,612284  0% 0% 0% 100%
Java 7 -server2.741.31298,2201661  45% 54% 37% 79%
 k-nucleotide 
Perl250.4175.641,921,476648  80% 82% 83% 90%
Java 7 -server29.238.03463,5162431  90% 98% 89% 89%
 fasta 
Perl281.22281.352,356934  0% 0% 1% 100%
Java 7 -server5.225.1418,1761507  0% 100% 1% 1%
 spectral-norm 
Perl1,011.88254.159,672846  100% 100% 100% 100%
Java 7 -server17.624.5017,716950  98% 99% 98% 98%
 n-body 
Perl1,418.351,418.842,3561140  0% 0% 100% 0%
Java 7 -server22.5222.5016,9201424  0% 100% 0% 0%
 binary-trees 
Perl666.30666.87480,460448  0% 0% 0% 100%
Java 7 -server22.869.41516,1441007  83% 41% 64% 57%
 mandelbrot 
Perl2,711.31681.93150,300592  100% 99% 100% 99%
Java 7 -server23.976.1069,360796  98% 99% 98% 98%
 fannkuch-redux 
Perl2,802.732,803.751,832457  88% 12% 0% 0%
Java 7 -server53.1913.4717,4161282  98% 100% 98% 100%
 pidigits 
PerlFailed
Java 7 -server1.580.5433,6281826  69% 79% 75% 81%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  0% 92% 9% 11%

 Step 4 : Are there other Perl programs for these benchmarks?

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.

 Step 5 : Are there other faster programs for these benchmarks?

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.

 Perl : server-side shell & cgi scripts 

This is perl 5, version 14, subversion 1 (v5.14.1) built for x86_64-linux-thread-multi

Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API

optimize='-O2'

Compare to built for x86_64-linux

Home Page: http://www.perl.org/

Download: http://www.cpan.org/src/5.0/

Revised BSD license

  Home   Conclusions   License   Help