÷

 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
 mandelbrot1/228×
 n-body±±
 fasta±±
 spectral-norm±±1/2
 pidigits±±
 binary-trees±±
 reverse-complement±±
 regex-dna±±±
 fannkuch
 k-nucleotide1/3

± 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
 mandelbrot 
PHP2,980.632,980.4484,572863  0% 0% 0% 100%
Perl5,268.135,267.813,032311  0% 0% 0% 100%
 n-body 
PHP1,423.201,423.123,4241255  0% 0% 0% 100%
Perl1,911.921,911.802,1281140  0% 0% 0% 100%
 fasta 
PHP266.23266.413,4121030  0% 1% 0% 100%
Perl349.59349.572,112934  0% 1% 0% 100%
 spectral-norm 
PHP1,075.951,075.895,300397  0% 0% 0% 100%
Perl1,184.331,184.267,792846  0% 0% 0% 100%
 pidigits 
PHP7.637.638,564537  0% 0% 0% 100%
Perl7.047.053,284385  0% 0% 0% 100%
 binary-trees 
PHP1,497.011,496.921,220,416493  0% 0% 0% 100%
Perl1,297.731,297.68643,488541  0% 0% 0% 100%
 reverse-complement 
PHP7.007.00444,456343  0% 0% 0% 100%
Perl5.805.80124,036237  0% 0% 1% 100%
 regex-dna 
PHP47.2447.24213,924449  0% 0% 0% 100%
Perl38.8438.84153,472527  0% 0% 0% 100%
 fannkuch 
PHP5,046.505,046.189,112745  0% 0% 0% 100%
Perl3,160.503,160.311,692391  0% 0% 0% 100%
 k-nucleotide 
PHP510.38510.34247,916914  0% 0% 0% 100%
Perl249.61252.46709,264359  0% 0% 0% 100%
 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