÷

 Are the PHP programs faster?

Do the PHP programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the PHP programs use a fraction of the time used by other programs or do they use several times more?


 PHP used what fraction? used how many times more? 
Programs 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±±

± look at the measurements and then look at the programs.

 Are the PHP programs faster?

Program & Logs 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

 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