÷

 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 Ruby MRI program.


 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 Ruby MRI program.

 Perl used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/61/2±
 nsieve-bits1/6±±
 fasta1/51/128±
 k-nucleotide1/51/2±
 reverse-complement1/41/2±
 mandelbrot1/4±±
 partial-sums1/3±±
 n-body1/3±±
 spectral-norm1/2±±
 fannkuch1/21/2±
 nsieve1/2±
 recursive±1/2±
 binary-trees±±±
 pidigits1/31/2

± 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 Ruby MRI program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Perl1.2322,120471  
Ruby MRI7.6242,824396  
 nsieve-bits 
Perl24.212,132253  
Ruby MRI139.662,740346  
 fasta 
Perl773.421,856791  
Ruby MRI4,202.98238,156744  
 k-nucleotide 
Perl32.0742,816359  
Ruby MRI160.0984,616420  
 reverse-complement 
Perl1.9938,360298  
Ruby MRI8.0886,340266  
 mandelbrot 
Perl15.931,532311  
Ruby MRI59.321,652349  
 partial-sums 
Perl17.411,476389  
Ruby MRI59.611,640362  
 n-body 
Perl1,697.591,9361140  
Ruby MRI4,847.571,7121137  
 spectral-norm 
Perl4,089.082,468334  
Ruby MRI9,862.172,732292  
 fannkuch 
Perl5.811,492348  
Ruby MRI12.422,864326  
 nsieve 
Perl25.45121,904290  
Ruby MRI41.5130,408270  
 recursive 
Perl36.282,080380  
Ruby MRI45.764,492301  
 binary-trees 
Perl239.3647,936541  
Ruby MRI172.3148,756409  
 pidigits 
Perl0.542,404385  
Ruby MRI0.306,032653  
 chameneos-redux
   No programs

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

Remember - those are just the fastest Perl and Ruby MRI 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 Ruby MRI 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, v5.8.8 built for i686-linux-thread-multi

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

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

Revised BSD license

  Home   Flawed   Fastest   License   Help