/mobile Handheld Friendly website
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/12 | 1/3 | |
| regex-dna | 3× | 1/3 | 1/2 | |
| reverse-complement | 3× | 2× | 1/5 | |
| k-nucleotide | 10× | 1/2 | 1/2 | |
| spectral-norm | 26× | ± | ± | |
| n-body | 31× | 1/6 | ± | |
| fasta | 33× | 1/6 | ± | |
| mandelbrot | 48× | 2× | ± | |
| binary-trees | 92× | 2× | 1/2 | |
| fannkuch-redux | 188× | 1/6 | 1/3 | |
| PHP used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 3× | 28× | 48× | 115× | 188× |
± 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 | 4.56 | 4.57 | 3,840 | 537 | 1% 0% 100% 0% |
| Java 7 -server | 12.36 | 5.16 | 47,348 | 1826 | 60% 61% 61% 54% |
| regex-dna | |||||
| PHP | 27.67 | 27.69 | 218,692 | 459 | 0% 0% 0% 100% |
| Java 7 -server | 28.92 | 10.07 | 708,180 | 929 | 65% 64% 83% 76% |
| reverse-complement | |||||
| PHP | 4.59 | 4.61 | 443,224 | 343 | 0% 0% 0% 100% |
| Java 7 -server | 2.88 | 1.52 | 294,656 | 1661 | 56% 74% 46% 16% |
| k-nucleotide | |||||
| PHP | 341.35 | 93.19 | 246,776 | 1117 | 95% 84% 97% 91% |
| Java 7 -server | 34.65 | 9.39 | 381,176 | 2431 | 92% 89% 97% 92% |
| spectral-norm | |||||
| PHP | 435.83 | 110.95 | 14,212 | 1193 | 98% 98% 99% 97% |
| Java 7 -server | 16.38 | 4.21 | 14,556 | 950 | 97% 97% 99% 98% |
| n-body | |||||
| PHP | 743.57 | 743.75 | 2,528 | 1082 | 77% 0% 0% 23% |
| Java 7 -server | 24.37 | 24.34 | 13,932 | 1424 | 0% 0% 0% 100% |
| fasta | |||||
| PHP | 159.75 | 161.66 | 2,532 | 1030 | 96% 1% 0% 4% |
| Java 7 -server | 4.95 | 4.86 | 14,976 | 1507 | 1% 0% 100% 1% |
| mandelbrot | |||||
| PHP | 1,311.59 | 329.93 | 106,248 | 863 | 100% 100% 100% 100% |
| Java 7 -server | 27.15 | 6.89 | 67,832 | 796 | 98% 99% 99% 99% |
| binary-trees | |||||
| PHP | 895.38 | 897.41 | 1,249,304 | 483 | 7% 81% 10% 3% |
| Java 7 -server | 23.89 | 9.78 | 532,932 | 1007 | 61% 77% 45% 63% |
| fannkuch-redux | |||||
| PHP | 3,224.82 | 3,225.63 | 2,516 | 482 | 0% 0% 0% 100% |
| Java 7 -server | 67.73 | 17.13 | 14,208 | 1282 | 98% 99% 99% 100% |
| fasta-redux | |||||
| Java 7 -server | 0.13 | 0.11 | ? | 1443 | 9% 18% 10% 90% |
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 2 2012 10:00:03)
Overall Performance: PHP is rarely the bottleneck (HTML slides)
Home Page: http://www.php.net/
Download: http://www.php.net/downloads.php