÷

 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
 binary-trees1/3
 mandelbrot1/21/3
 n-body1/2±
 fasta±±
 spectral-norm±±
 pidigits±±
 fannkuch±
 reverse-complement±±
 k-nucleotide1/11
 regex-dna±±

± 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
 binary-trees 
PHP1,629.57498.731,199,7561089  77% 78% 96% 76%
Perl1,292.441,292.38643,488541  0% 0% 100% 0%
 mandelbrot 
PHP2,858.60714.85111,076863  100% 100% 100% 100%
Perl5,578.831,436.69291,628550  97% 97% 97% 97%
 n-body 
PHP1,236.781,236.793,4121255  0% 0% 100% 0%
Perl1,914.131,914.022,1281140  0% 0% 0% 100%
 fasta 
PHP264.03264.163,3961030  0% 0% 100% 1%
Perl339.78339.762,112934  100% 0% 0% 0%
 spectral-norm 
PHP1,167.69296.7616,6241193  99% 98% 99% 98%
Perl1,212.30304.617,792846  100% 100% 99% 100%
 pidigits 
PHP7.627.628,524537  0% 0% 0% 100%
Perl7.037.033,284385  0% 0% 0% 100%
 fannkuch 
PHP4,965.971,245.4417,580745  99% 100% 100% 100%
Perl4,206.051,062.526,020471  99% 99% 99% 100%
 reverse-complement 
PHP7.097.09444,444343  0% 0% 0% 100%
Perl5.785.79124,036237  0% 0% 0% 100%
 k-nucleotide 
PHP511.46144.96247,9001268  96% 75% 85% 96%
Perl281.5788.722,774,904648  78% 73% 88% 83%
 regex-dna 
PHP47.3047.30219,512449  0% 0% 0% 100%
Perl39.0714.23153,584527  55% 66% 58% 96%
 chameneos-redux
   No program

 Measurements for all the accepted programs

 PHP : scripts embedded in html, and much more 

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