Compare the performance of PHP programs against some other language implementation.

For more information about the PHP implementation we measured see ↓ about PHP.

Compare to:

 PHP comparison summary


1/2 1/3 1/4 … PHP is better
Programs Time Memory Use Source Size Reduced N
chameneos-reduxNo program
nsieve±1/15±
regex-dna±±2 100,000
binary-trees±2±
mandelbrot±2±
spectral-norm±±±
recursive±2±
partial-sums22±
nsieve-bits213±
n-body23±
reverse-complement222
fannkuch22±
fasta22±
sum-file3±2
k-nucleotide41/22
pidigits7032

± look at the measurements

 PHP comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 nsieve 
PHP #242.0216,264221  
Perl #260.70242,316290  
 regex-dna N = 100,000 reduced workload 
PHP #22.319,496675  
Perl #22.776,508449  
 binary-trees 
PHP #2201.0182,456493  
Perl224.0637,588481  
 mandelbrot 
PHP #2351.076,312395  
Perl #2382.653,388311  
 spectral-norm 
PHP3,698.2223,392315  
Perl #23,943.6318,536334  
 recursive 
PHP #21,190.7919,264315  
Perl #2956.3110,812380  
 partial-sums 
PHP21.516,124367  
Perl #314.233,156389  
 nsieve-bits 
PHP #2164.5052,904317  
Perl93.554,024253  
 n-body 
PHP2,772.216,2681289  
Perl1,567.731,9041140  
 reverse-complement 
PHP3.7465,724508  
Perl #21.9938,356298  
 fannkuch 
PHP1,584.886,188484  
Perl728.503,144348  
 fasta 
PHP #22,094.326,4001029  
Perl #4850.673,156934  
 sum-file 
PHP52.2218,020146  
Perl15.5514,91684  
 k-nucleotide 
PHP97.2626,588818  
Perl #227.5442,836359  
 pidigits 
PHP432.387,892736  
Perl #26.213,144385  

 about PHP

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