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/15 | ± | |
| regex-dna | ± | ± | 2 | 100,000 |
| binary-trees | ± | 2 | ± | |
| mandelbrot | ± | 2 | ± | |
| spectral-norm | ± | ± | ± | |
| recursive | ± | 2 | ± | |
| partial-sums | 2 | 2 | ± | |
| nsieve-bits | 2 | 13 | ± | |
| n-body | 2 | 3 | ± | |
| reverse-complement | 2 | 2 | 2 | |
| fannkuch | 2 | 2 | ± | |
| fasta | 2 | 2 | ± | |
| sum-file | 3 | ± | 2 | |
| k-nucleotide | 4 | 1/2 | 2 | |
| pidigits | 70 | 3 | 2 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| nsieve | |||||
| PHP #2 | 42.02 | 16,264 | 221 | ||
| Perl #2 | 60.70 | 242,316 | 290 | ||
| regex-dna N = 100,000 reduced workload | |||||
| PHP #2 | 2.31 | 9,496 | 675 | ||
| Perl #2 | 2.77 | 6,508 | 449 | ||
| binary-trees | |||||
| PHP #2 | 201.01 | 82,456 | 493 | ||
| Perl | 224.06 | 37,588 | 481 | ||
| mandelbrot | |||||
| PHP #2 | 351.07 | 6,312 | 395 | ||
| Perl #2 | 382.65 | 3,388 | 311 | ||
| spectral-norm | |||||
| PHP | 3,698.22 | 23,392 | 315 | ||
| Perl #2 | 3,943.63 | 18,536 | 334 | ||
| recursive | |||||
| PHP #2 | 1,190.79 | 19,264 | 315 | ||
| Perl #2 | 956.31 | 10,812 | 380 | ||
| partial-sums | |||||
| PHP | 21.51 | 6,124 | 367 | ||
| Perl #3 | 14.23 | 3,156 | 389 | ||
| nsieve-bits | |||||
| PHP #2 | 164.50 | 52,904 | 317 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| n-body | |||||
| PHP | 2,772.21 | 6,268 | 1289 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| reverse-complement | |||||
| PHP | 3.74 | 65,724 | 508 | ||
| Perl #2 | 1.99 | 38,356 | 298 | ||
| fannkuch | |||||
| PHP | 1,584.88 | 6,188 | 484 | ||
| Perl | 728.50 | 3,144 | 348 | ||
| fasta | |||||
| PHP #2 | 2,094.32 | 6,400 | 1029 | ||
| Perl #4 | 850.67 | 3,156 | 934 | ||
| sum-file | |||||
| PHP | 52.22 | 18,020 | 146 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| k-nucleotide | |||||
| PHP | 97.26 | 26,588 | 818 | ||
| Perl #2 | 27.54 | 42,836 | 359 | ||
| pidigits | |||||
| PHP | 432.38 | 7,892 | 736 | ||
| Perl #2 | 6.21 | 3,144 | 385 | ||
PHP 5.2.5-2 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 1 2008 21:17:20)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php