Ubuntu : Intel® Q6600® quad-core |
Do the PHP programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the PHP programs use a fraction of the time used by other programs or do they use several times more?
| PHP used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ binary-trees | 1/3 | 2× | 2× | |
| ↓ mandelbrot | 1/2 | 1/3 | 2× | |
| ↓ n-body | 1/2 | 2× | ± | |
| ↓ fasta | ± | 2× | ± | |
| ↓ spectral-norm | ± | 2× | ± | |
| ↓ pidigits | ± | 3× | ± | |
| ↓ fannkuch | ± | 3× | 2× | |
| ↓ reverse-complement | ± | 4× | ± | |
| ↓ k-nucleotide | 2× | 1/11 | 2× | |
| ↓ regex-dna | 3× | ± | ± | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| binary-trees | |||||
| PHP | 1,629.57 | 498.73 | 1,199,756 | 1089 | 77% 78% 96% 76% |
| Perl | 1,292.44 | 1,292.38 | 643,488 | 541 | 0% 0% 100% 0% |
| mandelbrot | |||||
| PHP | 2,858.60 | 714.85 | 111,076 | 863 | 100% 100% 100% 100% |
| Perl | 5,578.83 | 1,436.69 | 291,628 | 550 | 97% 97% 97% 97% |
| n-body | |||||
| PHP | 1,236.78 | 1,236.79 | 3,412 | 1255 | 0% 0% 100% 0% |
| Perl | 1,914.13 | 1,914.02 | 2,128 | 1140 | 0% 0% 0% 100% |
| fasta | |||||
| PHP | 264.03 | 264.16 | 3,396 | 1030 | 0% 0% 100% 1% |
| Perl | 339.78 | 339.76 | 2,112 | 934 | 100% 0% 0% 0% |
| spectral-norm | |||||
| PHP | 1,167.69 | 296.76 | 16,624 | 1193 | 99% 98% 99% 98% |
| Perl | 1,212.30 | 304.61 | 7,792 | 846 | 100% 100% 99% 100% |
| pidigits | |||||
| PHP | 7.62 | 7.62 | 8,524 | 537 | 0% 0% 0% 100% |
| Perl | 7.03 | 7.03 | 3,284 | 385 | 0% 0% 0% 100% |
| fannkuch | |||||
| PHP | 4,965.97 | 1,245.44 | 17,580 | 745 | 99% 100% 100% 100% |
| Perl | 4,206.05 | 1,062.52 | 6,020 | 471 | 99% 99% 99% 100% |
| reverse-complement | |||||
| PHP | 7.09 | 7.09 | 444,444 | 343 | 0% 0% 0% 100% |
| Perl | 5.78 | 5.79 | 124,036 | 237 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| PHP | 511.46 | 144.96 | 247,900 | 1268 | 96% 75% 85% 96% |
| Perl | 281.57 | 88.72 | 2,774,904 | 648 | 78% 73% 88% 83% |
| regex-dna | |||||
| PHP | 47.30 | 47.30 | 219,512 | 449 | 0% 0% 0% 100% |
| Perl | 39.07 | 14.23 | 153,584 | 527 | 55% 66% 58% 96% |
| chameneos-redux | |||||
PHP 5.2.9 (cli) (built: Apr 9 2009 23:43:15)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php