PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
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 | ||||
| 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 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| nsieve | |||||
| PHP #2 | 13.31 | 10,516 | 221 | ||
| Perl #2 | 25.45 | 121,904 | 290 | ||
| mandelbrot | |||||
| PHP #2 | 245.48 | 5,484 | 395 | ||
| Perl #2 | 403.20 | 1,724 | 311 | ||
| pidigits | |||||
| PHP #2 | 2.24 | 7,312 | 537 | ||
| Perl #2 | 3.61 | 2,532 | 385 | ||
| spectral-norm | |||||
| PHP | 2,946.15 | 7,188 | 315 | ||
| Perl #2 | 4,089.08 | 2,468 | 334 | ||
| binary-trees | |||||
| PHP #2 | 173.25 | 81,648 | 493 | ||
| Perl #2 | 239.36 | 47,936 | 541 | ||
| regex-dna | |||||
| PHP #2 | 9.20 | 106,752 | 675 | ||
| Perl #4 | 11.81 | 21,408 | 431 | ||
| recursive | |||||
| PHP #2 | 879.94 | 18,088 | 315 | ||
| Perl #2 | 898.78 | 10,836 | 380 | ||
| partial-sums | |||||
| PHP | 17.81 | 5,504 | 367 | ||
| Perl #3 | 17.41 | 1,476 | 389 | ||
| nsieve-bits | |||||
| PHP #2 | 115.15 | 52,080 | 317 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| reverse-complement | |||||
| PHP | 2.58 | 39,696 | 508 | ||
| Perl #2 | 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 #2 | 1,755.91 | 5,576 | 1029 | ||
| Perl #4 | 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 #2 | 32.07 | 42,816 | 359 | ||
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