÷

 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
 nsieve±1/15±
 regex-dna±± 100,000
 binary-trees±±
 mandelbrot±±
 spectral-norm±±±
 recursive±±
 partial-sums±
 nsieve-bits13×±
 n-body±
 reverse-complement
 fannkuch±
 fasta±
 sum-file±
 k-nucleotide1/2
 pidigits70×

± 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 
PHP42.0216,264221  
Perl60.70242,316290  
 regex-dna N = 100,000 reduced workload 
PHP2.319,496675  
Perl2.776,508449  
 binary-trees 
PHP201.0182,456493  
Perl224.0637,588481  
 mandelbrot 
PHP351.076,312395  
Perl382.653,388311  
 spectral-norm 
PHP3,698.2223,392315  
Perl3,943.6318,536334  
 recursive 
PHP1,190.7919,264315  
Perl956.3110,812380  
 partial-sums 
PHP21.516,124367  
Perl14.233,156389  
 nsieve-bits 
PHP164.5052,904317  
Perl93.554,024253  
 n-body 
PHP2,772.216,2681289  
Perl1,567.731,9041140  
 reverse-complement 
PHP3.7465,724508  
Perl1.9938,356298  
 fannkuch 
PHP1,584.886,188484  
Perl728.503,144348  
 fasta 
PHP2,094.326,4001029  
Perl850.673,156934  
 sum-file 
PHP52.2218,020146  
Perl15.5514,91684  
 k-nucleotide 
PHP97.2626,588818  
Perl27.5442,836359  
 pidigits 
PHP432.387,892736  
Perl6.213,144385  
 chameneos-redux
   No program

 Measurements for all the accepted programs

 PHP : scripts embedded in html, and much more 

PHP 5.2.5-2 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 1 2008 21:17:20)

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