/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
 pidigits±1/141/5
 regex-dna±1/51/2
 reverse-complement±1/6
 k-nucleotide1/4
 spectral-norm65×1/2±
 fasta66×1/71/2
 n-body71×1/7±
 binary-trees78×1/21/2
 mandelbrot123×±±
 fannkuch-redux187×1/101/3
 Perl used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±66×78×187×187×

± 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
 pidigits 
Perl6.346.353,428385  0% 0% 100% 0%
Java 7 -server12.365.1647,3481826  60% 61% 61% 54%
 regex-dna 
Perl34.9713.53140,216527  78% 40% 81% 61%
Java 7 -server28.9210.07708,180929  65% 64% 83% 76%
 reverse-complement 
Perl3.273.29385,400284  0% 1% 100% 1%
Java 7 -server2.881.52294,6561661  56% 74% 46% 16%
 k-nucleotide 
Perl274.6680.111,764,968648  85% 77% 94% 88%
Java 7 -server34.659.39381,1762431  92% 89% 97% 92%
 spectral-norm 
Perl1,094.59275.147,624846  100% 100% 99% 99%
Java 7 -server16.384.2114,556950  97% 97% 99% 98%
 fasta 
Perl319.86320.182,004934  0% 0% 100% 0%
Java 7 -server4.954.8614,9761507  1% 0% 100% 1%
 n-body 
Perl1,733.081,733.452,0041140  87% 0% 13% 0%
Java 7 -server24.3724.3413,9321424  0% 0% 0% 100%
 binary-trees 
Perl761.37761.72289,732448  0% 0% 100% 0%
Java 7 -server23.899.78532,9321007  61% 77% 45% 63%
 mandelbrot 
Perl3,381.13850.2880,424592  100% 100% 99% 100%
Java 7 -server27.156.8967,832796  98% 99% 99% 99%
 fannkuch-redux 
Perl3,210.133,210.871,480457  0% 38% 0% 62%
Java 7 -server67.7317.1314,2081282  98% 99% 99% 100%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  9% 18% 10% 90%

 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 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/

Revised BSD license

  Home   Conclusions   License   Help