色々、やった結果 Amazon EC2 Micro インスタンス上に構築している WordPress 上で、ネットワーク越しでも ab -n 1000 -c 100 の結果が、これくらいになるようにはなった。
リソース少ないマシンをチューニングするのは楽しいすなぁ。
$ ab -n 1000 -c 100 -H 'Accept-Encoding: gzip' http://dogmap.jp/
Server Software: nginx
Server Hostname: dogmap.jp
Server Port: 80
Document Path: /
Document Length: 14265 bytes
Concurrency Level: 100
Time taken for tests: 3.40771 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 14473818 bytes
HTML transferred: 14295933 bytes
Requests per second: 328.86 [#/sec] (mean)
Time per request: 304.077 [ms] (mean)
Time per request: 3.041 [ms] (mean, across all concurrent requests)
Transfer rate: 4648.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 8 11 5.5 10 43
Processing: 27 275 68.2 267 563
Waiting: 19 263 67.9 254 545
Total: 38 287 69.2 278 594
Percentage of the requests served within a certain time (ms)
50% 278
66% 290
75% 317
80% 338
90% 371
95% 394
98% 427
99% 520
100% 594 (longest request)
秒間 328 リクエスト
ちなみに PHP Ninja 上の WordPress だと、このくらい。
$ ab -n 1000 -c 100 -H 'Accept-Encoding: gzip' http://ninja.dogmap.jp/
Server Software: nginx
Server Hostname: ninja.dogmap.jp
Server Port: 80
Document Path: /
Document Length: 8783 bytes
Concurrency Level: 100
Time taken for tests: 1.548749 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 9063550 bytes
HTML transferred: 8812060 bytes
Requests per second: 645.68 [#/sec] (mean)
Time per request: 154.875 [ms] (mean)
Time per request: 1.549 [ms] (mean, across all concurrent requests)
Transfer rate: 5714.94 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 12 23 11.5 20 63
Processing: 32 123 45.0 125 206
Waiting: 14 87 45.4 80 172
Total: 46 146 40.3 149 218
Percentage of the requests served within a certain time (ms)
50% 149
66% 173
75% 185
80% 191
90% 194
95% 198
98% 207
99% 214
100% 218 (longest request)
秒間 645 リクエスト、にばーいにばーい。
コメントを残す