Ubuntu : Intel® Q6600® quad-core |
Compare the performance of PHP programs against some other language implementation.
For more information about the PHP implementation we measured see ↓ about PHP.
| 1/2 1/3 1/4 PHP is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| chameneos-redux | ||||
| reverse-complement | 1/5 | ± | ± | |
| spectral-norm | 1/5 | 6 | 3 | |
| fannkuch | 1/3 | 11 | 2 | |
| binary-trees | 1/3 | 2 | 2 | |
| mandelbrot | 1/2 | 1/3 | 2 | |
| k-nucleotide | 1/2 | 1/3 | 4 | |
| n-body | 1/2 | 2 | ± | |
| fasta | ± | 2 | ± | |
| pidigits | ± | 3 | ± | |
| regex-dna | ± | 1/3 | ± | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| reverse-complement | |||||
| PHP #2 | 7.09 | 444,444 | 343 | 7.09 | 0% 0% 0% 100% |
| Perl #2 | 38.22 | 422,912 | 298 | 38.22 | 0% 99% 0% 0% |
| spectral-norm | |||||
| PHP #3 | 1,167.69 | 16,624 | 1193 | 296.76 | 99% 98% 99% 98% |
| Perl | 1,446.02 | 2,796 | 355 | 1,445.94 | 87% 0% 13% 0% |
| fannkuch | |||||
| PHP #3 | 4,965.97 | 17,580 | 745 | 1,245.44 | 99% 100% 100% 100% |
| Perl | 4,358.00 | 1,668 | 348 | 4,357.75 | 0% 0% 100% 0% |
| binary-trees | |||||
| PHP | 1,629.57 | 1,199,756 | 1089 | 498.73 | 77% 78% 96% 76% |
| Perl #2 | 1,343.31 | 643,504 | 541 | 1,343.26 | 100% 0% 0% 0% |
| mandelbrot | |||||
| PHP #3 | 2,858.60 | 111,076 | 863 | 714.85 | 100% 100% 100% 100% |
| Perl | 5,489.72 | 300,160 | 550 | 1,432.43 | 96% 95% 96% 95% |
| k-nucleotide | |||||
| PHP #3 | 511.46 | 247,900 | 1268 | 144.96 | 96% 75% 85% 96% |
| Perl #2 | 246.72 | 709,252 | 359 | 249.79 | 1% 1% 98% 0% |
| n-body | |||||
| PHP #2 | 1,236.78 | 3,412 | 1255 | 1,236.79 | 0% 0% 100% 0% |
| Perl | 1,930.06 | 2,140 | 1140 | 1,929.94 | 0% 100% 0% 0% |
| fasta | |||||
| PHP #3 | 264.03 | 3,396 | 1030 | 264.16 | 0% 0% 100% 1% |
| Perl #4 | 347.13 | 2,128 | 934 | 347.13 | 0% 100% 0% 0% |
| pidigits | |||||
| PHP #2 | 7.62 | 8,524 | 537 | 7.62 | 0% 0% 0% 100% |
| Perl #2 | 8.08 | 3,304 | 385 | 8.08 | 100% 0% 0% 0% |
| regex-dna | |||||
| PHP #2 | 47.30 | 219,512 | 449 | 47.30 | 0% 0% 0% 100% |
| Perl #4 | 46.45 | 562,056 | 440 | 46.45 | 0% 100% 0% 0% |
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