x64 Ubuntu : Intel® Q6600® quad-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/7 | 29× | 3× | |
| n-body | 1/2 | 2× | ± | |
| fasta | 1/2 | 2× | ± | |
| spectral-norm | ± | 2× | ± | |
| pidigits | ± | 4× | ± | |
| binary-trees | ± | 2× | ± | |
| reverse-complement | ± | ± | ± | |
| fannkuch | ± | 3× | 2× | |
| k-nucleotide | 2× | 1/12 | 2× | |
| regex-dna | 4× | ± | ± | |
± 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,384.41 | 596.53 | 120,300 | 863 | 100% 100% 100% 100% |
| Perl | 4,226.42 | 4,226.21 | 4,136 | 311 | 0% 0% 100% 0% |
| n-body | |||||
| PHP | 1,040.60 | 1,040.53 | 4,284 | 1255 | 0% 0% 0% 100% |
| Perl | 1,665.13 | 1,665.14 | 2,568 | 1140 | 0% 0% 100% 0% |
| fasta | |||||
| PHP | 202.35 | 202.35 | 4,252 | 1030 | 0% 0% 100% 0% |
| Perl | 314.46 | 314.46 | 2,548 | 934 | 100% 0% 0% 0% |
| spectral-norm | |||||
| PHP | 818.60 | 222.43 | 26,320 | 1193 | 88% 89% 91% 100% |
| Perl | 1,137.10 | 285.55 | 10,976 | 846 | 100% 100% 100% 100% |
| pidigits | |||||
| PHP | 7.36 | 7.36 | 15,860 | 537 | 0% 0% 100% 0% |
| Perl | 7.46 | 7.46 | 3,868 | 385 | 100% 0% 0% 0% |
| binary-trees | |||||
| PHP | 1,340.82 | 1,340.84 | 2,311,980 | 493 | 0% 0% 100% 0% |
| Perl | 1,276.89 | 1,276.85 | 1,091,276 | 541 | 0% 0% 100% 0% |
| reverse-complement | |||||
| PHP | 5.60 | 5.60 | 445,220 | 343 | 9% 0% 100% 4% |
| Perl | 5.25 | 5.25 | 431,496 | 298 | 100% 0% 0% 0% |
| fannkuch | |||||
| PHP | 4,376.82 | 1,098.19 | 25,900 | 745 | 100% 99% 100% 100% |
| Perl | 3,749.89 | 942.90 | 8,808 | 471 | 99% 100% 100% 100% |
| k-nucleotide | |||||
| PHP | 437.32 | 131.69 | 248,696 | 1268 | 97% 89% 67% 79% |
| Perl | 256.15 | 78.58 | 2,883,780 | 648 | 81% 71% 88% 84% |
| regex-dna | |||||
| PHP | 48.44 | 48.44 | 206,796 | 449 | 0% 100% 0% 0% |
| Perl | 38.61 | 12.84 | 167,208 | 527 | 78% 66% 76% 81% |
| chameneos-redux | |||||
PHP 5.2.9 (cli) (built: Apr 10 2009 12:51:05)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php