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
reverse-complement1/5±±
spectral-norm1/563
fannkuch1/3112
binary-trees1/322
mandelbrot1/21/32
k-nucleotide1/21/34
n-body1/22±
fasta±2±
pidigits±3±
regex-dna±1/3±

± look at the measurements

 PHP comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 reverse-complement 
PHP #27.09444,4443437.09  0% 0% 0% 100%
Perl #238.22422,91229838.22  0% 99% 0% 0%
 spectral-norm 
PHP #31,167.6916,6241193296.76  99% 98% 99% 98%
Perl1,446.022,7963551,445.94  87% 0% 13% 0%
 fannkuch 
PHP #34,965.9717,5807451,245.44  99% 100% 100% 100%
Perl4,358.001,6683484,357.75  0% 0% 100% 0%
 binary-trees 
PHP1,629.571,199,7561089498.73  77% 78% 96% 76%
Perl #21,343.31643,5045411,343.26  100% 0% 0% 0%
 mandelbrot 
PHP #32,858.60111,076863714.85  100% 100% 100% 100%
Perl5,489.72300,1605501,432.43  96% 95% 96% 95%
 k-nucleotide 
PHP #3511.46247,9001268144.96  96% 75% 85% 96%
Perl #2246.72709,252359249.79  1% 1% 98% 0%
 n-body 
PHP #21,236.783,41212551,236.79  0% 0% 100% 0%
Perl1,930.062,14011401,929.94  0% 100% 0% 0%
 fasta 
PHP #3264.033,3961030264.16  0% 0% 100% 1%
Perl #4347.132,128934347.13  0% 100% 0% 0%
 pidigits 
PHP #27.628,5245377.62  0% 0% 0% 100%
Perl #28.083,3043858.08  100% 0% 0% 0%
 regex-dna 
PHP #247.30219,51244947.30  0% 0% 0% 100%
Perl #446.45562,05644046.45  0% 100% 0% 0%

 about PHP

PHP 5.2.9 (cli) (built: Apr 9 2009 23:43:15)

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