÷

 Are the Perl programs faster?

Do the Perl programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Perl programs use a fraction of the time used by other programs or do they use several times more?


 Perl used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ nsieve-bits1/61/2±
↓ k-nucleotide1/51/2±
↓ fasta1/41/127±
↓ sum-file1/41/2±
↓ reverse-complement1/41/2±
↓ mandelbrot1/4±±
↓ partial-sums1/3±±
↓ n-body1/3±±
↓ spectral-norm1/2±±
↓ fannkuch1/2±±
↓ recursive1/21/4±
↓ nsieve1/2±
↓ pidigits±1/111/2
↓ regex-dna±1/4±
↓ binary-trees±±±

± look at the measurements and then look at the programs.

 Are the Perl programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 nsieve-bits 
Perl100.184,004253  
Ruby MRI588.266,020346  
 k-nucleotide 
Perl32.0742,816359  
Ruby MRI160.0984,616420  
 fasta 
Perl950.041,872934  
Ruby MRI4,202.98238,156744  
 sum-file 
Perl18.171,46884  
Ruby MRI76.342,44875  
 reverse-complement 
Perl1.9938,360298  
Ruby MRI8.0886,340266  
 mandelbrot 
Perl403.201,724311  
Ruby MRI1,455.281,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 
Perl855.721,492348  
Ruby MRI1,786.761,872326  
 recursive 
Perl898.7810,836380  
Ruby MRI1,482.3948,360301  
 nsieve 
Perl25.45121,904290  
Ruby MRI41.5130,408270  
 pidigits 
Perl3.612,532385  
Ruby MRI3.6828,196653  
 regex-dna 
Perl11.8121,408431  
Ruby MRI9.3781,148323  
 binary-trees 
Perl239.3647,936541  
Ruby MRI172.3148,756409  
 chameneos-redux
   No program

 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