2012年6月4日月曜日

WordPressパフォーマンス計測

環境

  • さくらのVPS 1Gプラン
  • Scientific Linux release 6.1 (Carbon)
  • MySQL 5.1.52
  • PHP 5.3.8 (cli) (built: Dec 1 2011 12:50:24)
  • WordPress 3.3.1
  • Plugin WP Multibyte Patch

Apache

  • Apache/2.2.15 (Unix)
$ ab -c 100 -n 100 http://www.lumiukko.jp/
Benchmarking www.lumiukko.jp (be patient)
apr_poll: The timeout specified has expired (70007)
Total of 31 requests completed
スワップしまくりで動かず。。。仕方なくhttpd.confを少し変更。

StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      50
MaxClients       50
MaxRequestsPerChild  1000

$ ab -c 100 -n 100 http://www.lumiukko.jp/
Benchmarking www.lumiukko.jp (be patient).....done


Server Software:        Apache/2.2.15
Server Hostname:        www.lumiukko.jp
Server Port:            80

Document Path:          /
Document Length:        7589 bytes

Concurrency Level:      100
Time taken for tests:   77.846 seconds
Complete requests:      100
Failed requests:        59
   (Connect: 0, Receive: 0, Length: 59, Exceptions: 0)
Write errors:           0
Total transferred:      784186 bytes
HTML transferred:       759086 bytes
Requests per second:    1.28 [#/sec] (mean)
Time per request:       77845.582 [ms] (mean)
Time per request:       778.456 [ms] (mean, across all concurrent requests)
Transfer rate:          9.84 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   31   3.4     32      33
Processing:  1595 47664 27800.9  54120   77810
Waiting:     1583 47460 27660.3  54120   77810
Total:       1618 47695 27802.6  54151   77840

Percentage of the requests served within a certain time (ms)
  50%  54151
  66%  68104
  75%  73927
  80%  76560
  90%  76589
  95%  77445
  98%  77545
  99%  77840
 100%  77840 (longest request)
3回実行した結果は以下の通り。
Requests per second:    1.28 [#/sec] (mean)
Requests per second:    1.44 [#/sec] (mean)
Requests per second:    1.44 [#/sec] (mean)

Apache+W3 Total Cache

W3 Total Cacheプラグインを導入。設定は以下の通り。
  • Page Cache: Enable (Disk: Enhanced)
  • Object Cache: Enable (Disk)
  • Browser Cache: Enable
測定結果は以下の通り。
$ ab -c 100 -n 100 http://www.lumiukko.jp/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.lumiukko.jp (be patient).....done


Server Software:        Apache/2.2.15
Server Hostname:        www.lumiukko.jp
Server Port:            80

Document Path:          /
Document Length:        8001 bytes

Concurrency Level:      100
Time taken for tests:   0.122 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      836300 bytes
HTML transferred:       800100 bytes
Requests per second:    818.04 [#/sec] (mean)
Time per request:       122.243 [ms] (mean)
Time per request:       1.222 [ms] (mean, across all concurrent requests)
Transfer rate:          6680.95 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       21   29   2.8     29      34
Processing:    19   49  19.4     50      77
Waiting:       10   45  20.3     46      76
Total:         46   77  18.1     79     103

Percentage of the requests served within a certain time (ms)
  50%     79
  66%     89
  75%     94
  80%     98
  90%    102
  95%    102
  98%    102
  99%    103
 100%    103 (longest request)
Requests per second:    818.04 [#/sec] (mean)
Requests per second:    963.47 [#/sec] (mean)
Requests per second:    1219.07 [#/sec] (mean)

apache+W3 Total Cache(APC)+APC

W3 Total Cacheプラグインの設定は以下の通り。
  • Page Cache: Enable (Opcode: Alternative PHP Cache(APC)
  • Object Cache: Enable (Opcode: Alternative PHP Cache(APC)
  • Browser Cache: Enable
$ ab -c 100 -n 100 http://www.lumiukko.jp/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.lumiukko.jp (be patient).....done


Server Software:        Apache/2.2.15
Server Hostname:        www.lumiukko.jp
Server Port:            80

Document Path:          /
Document Length:        7985 bytes

Concurrency Level:      100
Time taken for tests:   0.380 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      832000 bytes
HTML transferred:       798500 bytes
Requests per second:    263.26 [#/sec] (mean)
Time per request:       379.852 [ms] (mean)
Time per request:       3.799 [ms] (mean, across all concurrent requests)
Transfer rate:          2138.99 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       15   35  10.7     41      45
Processing:    43  182  87.1    183     321
Waiting:       43  178  89.3    181     320
Total:         58  217  96.4    221     365

Percentage of the requests served within a certain time (ms)
  50%    221
  66%    276
  75%    298
  80%    321
  90%    350
  95%    360
  98%    364
  99%    365
 100%    365 (longest request)
Requests per second:    263.26 [#/sec] (mean)
Requests per second:    312.71 [#/sec] (mean)
Requests per second:    253.15 [#/sec] (mean)
遅くなってる。。。

apache+W3 Total Cache(Disk)+APC

W3 Total Cacheプラグインの設定は以下の通り。
  • Page Cache: Enable (Disk: Enhanced)
  • Object Cache: Enable (Disk)
  • Browser Cache: Enable
$ ab -c 100 -n 100 http://www.lumiukko.jp/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.lumiukko.jp (be patient).....done


Server Software:        Apache/2.2.15
Server Hostname:        www.lumiukko.jp
Server Port:            80

Document Path:          /
Document Length:        8003 bytes

Concurrency Level:      100
Time taken for tests:   0.075 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      836500 bytes
HTML transferred:       800300 bytes
Requests per second:    1329.86 [#/sec] (mean)
Time per request:       75.196 [ms] (mean)
Time per request:       0.752 [ms] (mean, across all concurrent requests)
Transfer rate:          10863.54 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       10   14   2.0     14      17
Processing:    10   30  12.7     32      49
Waiting:        9   30  12.6     31      48
Total:         26   44  10.8     46      60

Percentage of the requests served within a certain time (ms)
  50%     46
  66%     50
  75%     53
  80%     56
  90%     60
  95%     60
  98%     60
  99%     60
 100%     60 (longest request)
Requests per second:    1329.86 [#/sec] (mean)
Requests per second:    1129.08 [#/sec] (mean)
Requests per second:    1389.76 [#/sec] (mean)
これがいいかな。

0 件のコメント:

コメントを投稿