Ubuntu : Intel® Q6600® one core |
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.
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 |
| mandelbrot | 1/2 | 28× | 3× | |
| n-body | ± | 2× | ± | |
| fasta | ± | 2× | ± | |
| spectral-norm | ± | ± | 1/2 | |
| pidigits | ± | 3× | ± | |
| binary-trees | ± | 2× | ± | |
| reverse-complement | ± | 4× | ± | |
| regex-dna | ± | ± | ± | |
| fannkuch | 2× | 5× | 2× | |
| k-nucleotide | 2× | 1/3 | 3× | |
± read the measurements and then read the program source code.
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 | |||||
| PHP | 2,980.63 | 2,980.44 | 84,572 | 863 | 0% 0% 0% 100% |
| Perl | 5,268.13 | 5,267.81 | 3,032 | 311 | 0% 0% 0% 100% |
| n-body | |||||
| PHP | 1,423.20 | 1,423.12 | 3,424 | 1255 | 0% 0% 0% 100% |
| Perl | 1,911.92 | 1,911.80 | 2,128 | 1140 | 0% 0% 0% 100% |
| fasta | |||||
| PHP | 266.23 | 266.41 | 3,412 | 1030 | 0% 1% 0% 100% |
| Perl | 349.59 | 349.57 | 2,112 | 934 | 0% 1% 0% 100% |
| spectral-norm | |||||
| PHP | 1,075.95 | 1,075.89 | 5,300 | 397 | 0% 0% 0% 100% |
| Perl | 1,184.33 | 1,184.26 | 7,792 | 846 | 0% 0% 0% 100% |
| pidigits | |||||
| PHP | 7.63 | 7.63 | 8,564 | 537 | 0% 0% 0% 100% |
| Perl | 7.04 | 7.05 | 3,284 | 385 | 0% 0% 0% 100% |
| binary-trees | |||||
| PHP | 1,497.01 | 1,496.92 | 1,220,416 | 493 | 0% 0% 0% 100% |
| Perl | 1,297.73 | 1,297.68 | 643,488 | 541 | 0% 0% 0% 100% |
| reverse-complement | |||||
| PHP | 7.00 | 7.00 | 444,456 | 343 | 0% 0% 0% 100% |
| Perl | 5.80 | 5.80 | 124,036 | 237 | 0% 0% 1% 100% |
| regex-dna | |||||
| PHP | 47.24 | 47.24 | 213,924 | 449 | 0% 0% 0% 100% |
| Perl | 38.84 | 38.84 | 153,472 | 527 | 0% 0% 0% 100% |
| fannkuch | |||||
| PHP | 5,046.50 | 5,046.18 | 9,112 | 745 | 0% 0% 0% 100% |
| Perl | 3,160.50 | 3,160.31 | 1,692 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| PHP | 510.38 | 510.34 | 247,916 | 914 | 0% 0% 0% 100% |
| Perl | 249.61 | 252.46 | 709,264 | 359 | 0% 0% 0% 100% |
| chameneos-redux | |||||
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