#contents
#br


* ab [Apache Bench] [#zcdc4e09]

** 使い方 [#dc6a2687]

#pre(soft){{
# ab ['''options'''] '''url'''
}}

|オプション|意味|説明|h
|-n '''num'''||リクエスト回数|
|-c '''num'''||同時リクエスト数|
|-t '''num'''|timeout|レスポンスのタイムアウト値|
|-k|keepalive|KeepAlive を有効にする|
|-A '''username:password'''|authentication|ベーシック認証を使用する場合|


** 結果 [#ocdbd6e6]

#pre(soft){{
# ab -n 10000 -c 10 http://www.yamikuro.com/
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.yamikuro.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        Apache/2.2.13
Server Hostname:        www.yamikuro.com
Server Port:            80

Document Path:          /
Document Length:        17251 bytes

Concurrency Level:      10  &color(red){同時リクエスト数};
Time taken for tests:   11.967 seconds  &color(red){テスト実行時間};
Complete requests:      10000  &color(red){成功したリクエスト数};
Failed requests:        0      &color(red){失敗したリクエスト数};
Write errors:           0
Total transferred:      175357534 bytes
HTML transferred:       172527251 bytes
Requests per second:    835.67 [#/sec] (mean)  &color(red){秒間処理リクエスト数の平均値};
Time per request:       11.967 [ms] (mean)  &color(red){1リクエスト当たりの応答時間の平均値};
Time per request:       1.197 [ms] (mean, across all concurrent requests)  &color(red){1リクエスト当たりの処理時間の平均値};
Transfer rate:          14310.56 [Kbytes/sec] received  &color(red){秒間受信データ量の平均値};

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3   1.0      3       9  &color(red){接続時間};
Processing:     3    9   1.2      9      12  &color(red){処理時間};
Waiting:        1    4   1.1      3       9  &color(red){待ち時間};
Total:          6   12   1.2     12      21  &color(red){総応答時間};
                   &color(red){平均値      中央値   最大値};
Percentage of the requests served within a certain time (ms)  &color(red){応答時間の分布};
  50%     12  &color(red){上位50%のリクエストの最大応答時間};
  66%     12
  75%     12
  80%     13
  90%     14
  95%     14
  98%     15
  99%     15
 100%     21 (longest request)  &color(red){全リクエストの最大応答時間};
}}

#br
#adsense(728x90)
#br

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS