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
nsieve1/21/12±
mandelbrot1/23±
pidigits1/23±
spectral-norm±3±
binary-trees±2±
regex-dna±52
recursive±2±
partial-sums±4±
nsieve-bits±13±
reverse-complement±±2
fannkuch±4±
n-body±3±
fasta23±
sum-file242
k-nucleotide2±2

± look at the measurements

 PHP comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 nsieve 
PHP #213.3110,516221  
Perl #225.45121,904290  
 mandelbrot 
PHP #2245.485,484395  
Perl #2403.201,724311  
 pidigits 
PHP #22.247,312537  
Perl #23.612,532385  
 spectral-norm 
PHP2,946.157,188315  
Perl #24,089.082,468334  
 binary-trees 
PHP #2173.2581,648493  
Perl #2239.3647,936541  
 regex-dna 
PHP #29.20106,752675  
Perl #411.8121,408431  
 recursive 
PHP #2879.9418,088315  
Perl #2898.7810,836380  
 partial-sums 
PHP17.815,504367  
Perl #317.411,476389  
 nsieve-bits 
PHP #2115.1552,080317  
Perl100.184,004253  
 reverse-complement 
PHP2.5839,696508  
Perl #21.9938,360298  
 fannkuch 
PHP1,165.025,500484  
Perl855.721,492348  
 n-body 
PHP2,381.865,6361289  
Perl1,697.591,9361140  
 fasta 
PHP #21,755.915,5761029  
Perl #4950.041,872934  
 sum-file 
PHP41.995,456146  
Perl18.171,46884  
 k-nucleotide 
PHP79.7830,336818  
Perl #232.0742,816359  

 about PHP

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