OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 |
| nsieve | 1/2 | 1/12 | ± | |
| mandelbrot | 1/2 | 3× | ± | |
| pidigits | 1/2 | 3× | ± | |
| spectral-norm | ± | 3× | ± | |
| binary-trees | ± | 2× | ± | |
| regex-dna | ± | 5× | 2× | |
| recursive | ± | 2× | ± | |
| partial-sums | ± | 4× | ± | |
| nsieve-bits | ± | 13× | ± | |
| reverse-complement | ± | ± | 2× | |
| fannkuch | ± | 4× | ± | |
| n-body | ± | 3× | ± | |
| fasta | 2× | 3× | ± | |
| sum-file | 2× | 4× | 2× | |
| k-nucleotide | 2× | ± | 2× | |
± 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 |
|---|---|---|---|---|---|
| nsieve | |||||
| PHP | 13.31 | 10,516 | 221 | ||
| Perl | 25.45 | 121,904 | 290 | ||
| mandelbrot | |||||
| PHP | 245.48 | 5,484 | 395 | ||
| Perl | 403.20 | 1,724 | 311 | ||
| pidigits | |||||
| PHP | 2.24 | 7,312 | 537 | ||
| Perl | 3.61 | 2,532 | 385 | ||
| spectral-norm | |||||
| PHP | 2,946.15 | 7,188 | 315 | ||
| Perl | 4,089.08 | 2,468 | 334 | ||
| binary-trees | |||||
| PHP | 173.25 | 81,648 | 493 | ||
| Perl | 239.36 | 47,936 | 541 | ||
| regex-dna | |||||
| PHP | 9.20 | 106,752 | 675 | ||
| Perl | 11.81 | 21,408 | 431 | ||
| recursive | |||||
| PHP | 879.94 | 18,088 | 315 | ||
| Perl | 898.78 | 10,836 | 380 | ||
| partial-sums | |||||
| PHP | 17.81 | 5,504 | 367 | ||
| Perl | 17.41 | 1,476 | 389 | ||
| nsieve-bits | |||||
| PHP | 115.15 | 52,080 | 317 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| reverse-complement | |||||
| PHP | 2.58 | 39,696 | 508 | ||
| Perl | 1.99 | 38,360 | 298 | ||
| fannkuch | |||||
| PHP | 1,165.02 | 5,500 | 484 | ||
| Perl | 855.72 | 1,492 | 348 | ||
| n-body | |||||
| PHP | 2,381.86 | 5,636 | 1289 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| fasta | |||||
| PHP | 1,755.91 | 5,576 | 1029 | ||
| Perl | 950.04 | 1,872 | 934 | ||
| sum-file | |||||
| PHP | 41.99 | 5,456 | 146 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| k-nucleotide | |||||
| PHP | 79.78 | 30,336 | 818 | ||
| Perl | 32.07 | 42,816 | 359 | ||
| chameneos-redux | |||||
PHP 5.2.2-pl1-gentoo (cli) (built: May 8 2007 09:51:53)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php