/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest PHP program used compared to the fastest Java 7 -server program.
Look at speed another way - look at a box plot of Time-used data.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest PHP program used compared to the fastest Java 7 -server program.
| PHP used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| pidigits | ± | 1/14 | 1/3 | |
| reverse-complement | 3× | ± | 1/5 | |
| regex-dna | 4× | 1/3 | 1/3 | |
| k-nucleotide | 13× | 1/2 | 1/2 | |
| spectral-norm | 23× | ± | ± | |
| fasta | 28× | 1/6 | ± | |
| n-body | 30× | 1/5 | ± | |
| mandelbrot | 49× | 2× | ± | |
| binary-trees | 127× | 5× | 1/2 | |
| fannkuch-redux | 241× | 1/5 | 1/3 | |
| PHP used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 4× | 25× | 49× | 117× | 241× |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest PHP program are shown for comparison against measurements of the fastest Java 7 -server program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| pidigits | |||||
| PHP | 3.59 | 3.59 | 4,668 | 537 | 0% 0% 1% 100% |
| Java 7 -server | 10.61 | 4.43 | 63,156 | 1826 | 71% 69% 52% 45% |
| reverse-complement | |||||
| PHP | 4.19 | 4.23 | 444,072 | 343 | 0% 1% 100% 0% |
| Java 7 -server | 2.74 | 1.31 | 298,220 | 1661 | 45% 54% 37% 79% |
| regex-dna | |||||
| PHP | 26.71 | 26.73 | 223,992 | 459 | 0% 0% 100% 0% |
| Java 7 -server | 23.36 | 6.63 | 636,924 | 1410 | 92% 87% 88% 86% |
| k-nucleotide | |||||
| PHP | 363.50 | 104.52 | 247,624 | 1117 | 83% 80% 92% 95% |
| Java 7 -server | 29.23 | 8.03 | 463,516 | 2431 | 90% 98% 89% 89% |
| spectral-norm | |||||
| PHP | 408.97 | 104.58 | 24,112 | 1193 | 98% 98% 98% 98% |
| Java 7 -server | 17.62 | 4.50 | 17,716 | 950 | 98% 99% 98% 98% |
| fasta | |||||
| PHP | 138.05 | 141.97 | 3,232 | 1030 | 25% 63% 14% 1% |
| Java 7 -server | 5.22 | 5.14 | 18,176 | 1507 | 0% 100% 1% 1% |
| n-body | |||||
| PHP | 679.36 | 679.51 | 3,248 | 1082 | 0% 0% 100% 0% |
| Java 7 -server | 22.52 | 22.50 | 16,920 | 1424 | 0% 100% 0% 0% |
| mandelbrot | |||||
| PHP | 1,200.36 | 300.72 | 114,680 | 863 | 100% 100% 100% 100% |
| Java 7 -server | 23.97 | 6.10 | 69,360 | 796 | 98% 99% 98% 98% |
| binary-trees | |||||
| PHP | 1,190.78 | 1,195.05 | 2,381,092 | 483 | 18% 15% 65% 4% |
| Java 7 -server | 22.86 | 9.41 | 516,144 | 1007 | 83% 41% 64% 57% |
| fannkuch-redux | |||||
| PHP | 3,245.36 | 3,246.12 | 3,212 | 482 | 31% 0% 0% 70% |
| Java 7 -server | 53.19 | 13.47 | 17,416 | 1282 | 98% 100% 98% 100% |
| fasta-redux | |||||
| Java 7 -server | 0.13 | 0.11 | ? | 1443 | 0% 92% 9% 11% |
Remember - those are just the fastest PHP and Java 7 -server programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for PHP.
Maybe one of those other PHP programs is fastest on a different OS/machine.
Remember - those are just the fastest PHP and Java 7 -server programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.
Maybe one of those other programs is fastest on a different OS/machine.
PHP 5.4.0 (cli) (built: Mar 3 2012 00:19:40)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php