WEBRADAR

PHP 5.5のZend OPcacheのパフォーマンスを比較

PHP5.5のコードキャッシュはAPCは使えなくなって、Zend OPcacheなるものを使うことになるらしい・・・
このWordPressのサーバーに導入してみてどれくらい高速化されるかやってみました。
■no cashe

$ab -c 50 -n 100 http://webradar.info/
Server Software: nginx
Server Hostname: webradar.info
Server Port: 80

Document Path: /
Document Length: 654 bytes

Concurrency Level: 50
Time taken for tests: 17.930 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 82900 bytes
HTML transferred: 65400 bytes
Requests per second: 5.58 [#/sec] (mean)
Time per request: 8964.958 [ms] (mean)
Time per request: 179.299 [ms] (mean, across all concurrent requests)
Transfer rate: 4.52 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 13 35 18.9 46 68
Processing: 2627 8155 2912.8 8585 16070
Waiting: 2627 8154 2912.8 8579 16070
Total: 2642 8189 2915.7 8636 16138

■cashe

$ab -c 50 -n 100 http://webradar.info/
Server Software: nginx
Server Hostname: webradar.info
Server Port: 80

Document Path: /
Document Length: 654 bytes

Concurrency Level: 50
Time taken for tests: 6.464 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 82900 bytes
HTML transferred: 65400 bytes
Requests per second: 15.47 [#/sec] (mean)
Time per request: 3232.215 [ms] (mean)
Time per request: 64.644 [ms] (mean, across all concurrent requests)
Transfer rate: 12.52 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 13 30 15.9 37 63
Processing: 451 2628 1018.0 3125 3785
Waiting: 451 2627 1017.9 3125 3784
Total: 488 2658 1010.7 3140 3799

Requests per secondの値で3倍近くはやくなりました。