Performance Comparison between PHP5.2.16 and PHP5.4.9 hardware environment: Server: DL180G6 & nbsp; (16 & nbsp; Intel (R) Xeon (R) CPU & nbsp; & nbsp; E5620 & nbsp; @ 2.40 GHz) & nbsp; performance Comparison between nb PHP 5.2.16 and PHP 5.4.9
Hardware environment:
Server: DL180G6 (16 Intel (R) Xeon (R) CPU E5620 @ 2.40 GHz) 16 GB memory
Press: DL180G6 (16 Intel (R) Xeon (R) CPU E5620 @ 2.40 GHz) 16 GB memory
Software environment:
Nginx1.2.5php5.4.9/5.2.16 XCache3.0.0 Max 600php-fpm
Network Environment: Gigabit
Test scenario:
Php has two different versions. when the same hardware and network environment and pressure are configured, the same number of concurrent users send requests to the server. Compare the server resource usage and transaction processing capabilities.
Test results:
Concurrent Users |
CPU (us + sy) |
Load average |
Response time (s) |
QPS/s |
20 |
46% |
9.2 |
0.022 |
950 |
40 |
49% |
13.4 |
0.032 |
890 |
60 |
52% |
22.8 |
0.043 |
860 |
80 |
54% |
28.3 |
0.055 |
840 |
100 |
55% |
42.1 |
0.064 |
820 |
PHP 5.2.16
Concurrent Users |
CPU (us + sy) |
Load average |
Response time (s) |
QPS/s |
20 |
48% |
8.7 |
0.018 |
1100 |
40 |
50% |
14.6 |
0.026 |
1050 |
60 |
54% |
21.3 |
0.036 |
1010 |
80 |
56% |
26.3 |
0.046 |
998 |
100 |
57% |
34.7 |
0.054 |
1020 |
PHP 5.4.9