NOAD Apache付属のab(Apache Bench)を使用

基本的な使い方

オプション説明
-c同時接続数
-n全リクエスト数
/usr/local/apache2/bin/ab -c 10 -n 100 http://192.168.1.2/

http://192.168.1.2/ に対して同時接続数10で合計100リクエスト発生させるということ

abを動かすサーバとリクエスト先のサーバは別である方が望ましい

結果の見方

Benchmarking 192.168.1.2 (be patient).....done


Server Software:        Apache
Server Hostname:        192.168.1.2
Server Port:            80

Document Path:          /
Document Length:        7319 bytes

Concurrency Level:      10
Time taken for tests:   47.389670 seconds
Complete requests:      100
Failed requests:        60
   (Connect: 0, Length: 60, Exceptions: 0)
Write errors:           0
Total transferred:      743952 bytes
HTML transferred:       731890 bytes
Requests per second:    2.11 [#/sec] (mean)
Time per request:       4738.967 [ms] (mean)
Time per request:       473.897 [ms] (mean, across all concurrent requests)
Transfer rate:          15.32 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.5      0       1
Processing:  1096 4689 1389.5   4666    7718
Waiting:     1091 4519 1301.2   4542    7582
Total:       1096 4690 1389.5   4666    7718

Percentage of the requests served within a certain time (ms)
  50%   4666
  66%   4967
  75%   5650
  80%   5946
  90%   6614
  95%   7286
  98%   7587
  99%   7718
 100%   7718 (longest request)
Concurrency Level同時接続数
Time taken for tests完了までの時間
Complete requests総リクエスト数
Failed requests失敗したリクエスト数
Requests per second1秒あたりのリクエスト数
Time per request1リクエストあたりの所要時間
Transfer rate1秒あたりの受信容量

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS