x64 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 | ± | ± | |
| n-body | 1/2 | 2× | ± | |
| fasta | 1/2 | 2× | ± | |
| spectral-norm | ± | ± | 1/2 | |
| binary-trees | ± | 2× | ± | |
| pidigits | ± | 4× | ± | |
| reverse-complement | ± | ± | ± | |
| regex-dna | ± | ± | ± | |
| fannkuch | 2× | 6× | 2× | |
| k-nucleotide | 2× | 1/3 | 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,398.85 | 2,398.73 | 4,768 | 443 | 0% 0% 0% 100% |
| Perl | 4,387.61 | 4,387.50 | 4,132 | 311 | 0% 0% 0% 100% |
| n-body | |||||
| PHP | 1,060.30 | 1,060.23 | 4,284 | 1255 | 0% 0% 0% 100% |
| Perl | 1,639.61 | 1,639.53 | 2,572 | 1140 | 0% 0% 0% 100% |
| fasta | |||||
| PHP | 204.50 | 204.69 | 4,256 | 1030 | 1% 0% 0% 100% |
| Perl | 311.00 | 310.98 | 2,548 | 934 | 1% 1% 1% 100% |
| spectral-norm | |||||
| PHP | 778.43 | 778.44 | 7,860 | 397 | 0% 0% 0% 100% |
| Perl | 1,094.72 | 1,094.65 | 11,060 | 846 | 0% 0% 0% 100% |
| binary-trees | |||||
| PHP | 1,325.72 | 1,325.64 | 2,311,976 | 493 | 1% 0% 0% 100% |
| Perl | 1,490.64 | 1,490.58 | 1,091,276 | 541 | 0% 0% 0% 100% |
| pidigits | |||||
| PHP | 7.40 | 7.40 | 14,388 | 537 | 0% 0% 0% 100% |
| Perl | 7.47 | 7.48 | 3,884 | 385 | 0% 0% 0% 100% |
| reverse-complement | |||||
| PHP | 5.56 | 5.57 | 445,220 | 343 | 0% 0% 0% 100% |
| Perl | 5.30 | 5.30 | 433,056 | 298 | 0% 0% 0% 100% |
| regex-dna | |||||
| PHP | 48.55 | 48.55 | 194,852 | 449 | 0% 0% 0% 100% |
| Perl | 38.78 | 38.78 | 165,064 | 527 | 0% 0% 0% 100% |
| fannkuch | |||||
| PHP | 4,450.99 | 4,450.71 | 12,892 | 745 | 0% 0% 0% 100% |
| Perl | 2,660.57 | 2,660.43 | 2,060 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| PHP | 433.02 | 432.99 | 248,700 | 1268 | 0% 0% 0% 100% |
| Perl | 225.09 | 228.97 | 780,228 | 359 | 0% 0% 0% 100% |
| 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