÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest PHP program used compared to the fastest Perl program.


 Step 2 : Are the PHP programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

Each table row shows, for one named benchmark, how much the fastest PHP program used compared to the fastest Perl program.

 PHP used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 nsieve1/21/12±
 mandelbrot1/2±
 pidigits1/2±
 spectral-norm±±
 binary-trees±±
 regex-dna±
 recursive±±
 partial-sums±±
 nsieve-bits±13×±
 reverse-complement±±
 fannkuch±±
 n-body±±
 fasta±
 sum-file
 k-nucleotide±

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

 Step 3 : Are the PHP programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest PHP program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 nsieve 
PHP13.3110,516221  
Perl25.45121,904290  
 mandelbrot 
PHP245.485,484395  
Perl403.201,724311  
 pidigits 
PHP2.247,312537  
Perl3.612,532385  
 spectral-norm 
PHP2,946.157,188315  
Perl4,089.082,468334  
 binary-trees 
PHP173.2581,648493  
Perl239.3647,936541  
 regex-dna 
PHP9.20106,752675  
Perl11.8121,408431  
 recursive 
PHP879.9418,088315  
Perl898.7810,836380  
 partial-sums 
PHP17.815,504367  
Perl17.411,476389  
 nsieve-bits 
PHP115.1552,080317  
Perl100.184,004253  
 reverse-complement 
PHP2.5839,696508  
Perl1.9938,360298  
 fannkuch 
PHP1,165.025,500484  
Perl855.721,492348  
 n-body 
PHP2,381.865,6361289  
Perl1,697.591,9361140  
 fasta 
PHP1,755.915,5761029  
Perl950.041,872934  
 sum-file 
PHP41.995,456146  
Perl18.171,46884  
 k-nucleotide 
PHP79.7830,336818  
Perl32.0742,816359  
 chameneos-redux
   No program

 Measurements for all the accepted programs

 PHP : scripts embedded in html, and much more 

PHP 5.2.2-pl1-gentoo (cli) (built: May 8 2007 09:51:53)

Overall Performance: PHP is rarely the bottleneck (HTML slides)

Home Page: http://www.php.net/

Download: http://www.php.net/downloads.php

Revised BSD license