Performance comparison of PHP three accelerators
Hardware environment:
Server: Dl180g6 (Intel (R) Xeon (r) CPU E5620 @2.40ghz) 16G memory
Presses: Dl180g6 (Intel (R) Xeon (r) CPU E5620 @ 2.40GHz) 16G memory
Software Environment:
nginx1.2.5php5.4.9 Max 600PHP-FPM
network environment: Gigabit
Test scenario:
Scenario One: (without any extensions):
Scenario Two: (Open APC 3.1.14, allocate cache 512M):
Scenario Three: (Open XCache 3.0.1, allocate cache 512M):
Scenario Four: (Eaccelerator 1.0-dev, allocation cache 32M): because the failed to setthe 1.15m, the test page generates a cache that is less significant.
The above four scenarios, the same number of concurrent users 20 (is the best number of users), access to the same URL (http://playback.i.ifeng.com/hehe.pi?vt=5), each scene runs for 5 minutes, Compare the performance of three kinds of PHP caches under the same pressure.
Test results:
Extended |
CPU (Us/sy) |
Load Average |
Response Time (s) |
qps/s |
None |
67%,26% |
12 |
0.18 |
108 |
XCache |
56%,34% |
15 |
0.16 |
120 |
Eaccelerator |
64%,27% |
15 |
0.13 |
150 |
Apc |
60%,30% |
13 |
0.11 |
170 |