÷

 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.


 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
 mandelbrot1/729×
 n-body1/2±
 fasta1/2±
 spectral-norm±±
 pidigits±±
 binary-trees±±
 reverse-complement±±±
 fannkuch±
 k-nucleotide1/12
 regex-dna±±

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

 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
 mandelbrot 
PHP2,384.41596.53120,300863  100% 100% 100% 100%
Perl4,226.424,226.214,136311  0% 0% 100% 0%
 n-body 
PHP1,040.601,040.534,2841255  0% 0% 0% 100%
Perl1,665.131,665.142,5681140  0% 0% 100% 0%
 fasta 
PHP202.35202.354,2521030  0% 0% 100% 0%
Perl314.46314.462,548934  100% 0% 0% 0%
 spectral-norm 
PHP818.60222.4326,3201193  88% 89% 91% 100%
Perl1,137.10285.5510,976846  100% 100% 100% 100%
 pidigits 
PHP7.367.3615,860537  0% 0% 100% 0%
Perl7.467.463,868385  100% 0% 0% 0%
 binary-trees 
PHP1,340.821,340.842,311,980493  0% 0% 100% 0%
Perl1,276.891,276.851,091,276541  0% 0% 100% 0%
 reverse-complement 
PHP5.605.60445,220343  9% 0% 100% 4%
Perl5.255.25431,496298  100% 0% 0% 0%
 fannkuch 
PHP4,376.821,098.1925,900745  100% 99% 100% 100%
Perl3,749.89942.908,808471  99% 100% 100% 100%
 k-nucleotide 
PHP437.32131.69248,6961268  97% 89% 67% 79%
Perl256.1578.582,883,780648  81% 71% 88% 84%
 regex-dna 
PHP48.4448.44206,796449  0% 100% 0% 0%
Perl38.6112.84167,208527  78% 66% 76% 81%
 chameneos-redux
   No program

 PHP : scripts embedded in html, and much more 

PHP 5.2.9 (cli) (built: Apr 10 2009 12:51:05)

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