仕組み的に早くなってバンザーイだと思ったngx_pagespeedですが
結局NGINXのCache使った方が死ぬほど早かったという罠
ngx_pagespeed on;
# ab -n 1000 -c 100 http://www.nekolove.jp/wp/ This is ApacheBench, Version 2.3 <$Revision: 1604373 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.nekolove.jp (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests Server Software: nginx Server Hostname: www.nekolove.jp Server Port: 80 Document Path: /wp/ Document Length: 28383 bytes Concurrency Level: 100 Time taken for tests: 18.597 seconds Complete requests: 1000 Failed requests: 2 (Connect: 0, Receive: 0, Length: 2, Exceptions: 0) Total transferred: 28766106 bytes HTML transferred: 28383106 bytes Requests per second: 53.77 [#/sec] (mean) Time per request: 1859.710 [ms] (mean) Time per request: 18.597 [ms] (mean, across all concurrent requests) Transfer rate: 1510.55 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 28 98.4 17 1603 Processing: 84 1762 1080.2 1406 4675 Waiting: 68 1725 1072.0 1376 4646 Total: 98 1790 1095.5 1428 5885 Percentage of the requests served within a certain time (ms) 50% 1428 66% 2482 75% 2979 80% 3027 90% 3181 95% 3363 98% 3582 99% 3617 100% 5885 (longest request) #
ngx_pagespeed off;
# ab -n 1000 -c 100 http://www.nekolove.jp/wp/ This is ApacheBench, Version 2.3 <$Revision: 1604373 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.nekolove.jp (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests Server Software: nginx Server Hostname: www.nekolove.jp Server Port: 80 Document Path: /wp/ Document Length: 88049 bytes Concurrency Level: 100 Time taken for tests: 8.838 seconds Complete requests: 1000 Failed requests: 0 Total transferred: 88367000 bytes HTML transferred: 88049000 bytes Requests per second: 113.15 [#/sec] (mean) Time per request: 883.754 [ms] (mean) Time per request: 8.838 [ms] (mean, across all concurrent requests) Transfer rate: 9764.69 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 16 60 264.5 24 3047 Processing: 100 716 543.9 559 3994 Waiting: 15 58 97.9 25 1663 Total: 117 776 612.7 595 4952 Percentage of the requests served within a certain time (ms) 50% 595 66% 817 75% 994 80% 1110 90% 1491 95% 1932 98% 2560 99% 3298 100% 4952 (longest request) #
これアカンやつや・・・っていうか処理能力が全般で倍違うとわ
もし使い続けるなら使用するフィルターを調整しないとダメだわね
NGINXのキャッシュのあるなしは関係なくてngx_pagespeedが動いてると性能が低下する模様
どこかにボトルネックがあるのか、合わないのか・・・