Apache Bench

使う機会があったのでサクッとメモ

導入

brew install homebrew/apache/ab

使い方

ab -n 100 -c 100 http://xxxxx
# n: リクエスト総数, c: 並列数

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (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:        
Server Hostname:        xxxxx
Server Port:            9000

Document Path:          /
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   2.006 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1300000 bytes
HTML transferred:       130000 bytes
Requests per second:    4985.59 [#/sec] (mean)
Time per request:       20.058 [ms] (mean)
Time per request:       0.201 [ms] (mean, across all concurrent requests)
Transfer rate:          632.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    7  18.5      6     272
Processing:     1   13  19.3     10     272
Waiting:        1   11  19.4      8     272
Total:          7   20  26.4     16     280

Percentage of the requests served within a certain time (ms)
  50%     16
  66%     18
  75%     19
  80%     20
  90%     24
  95%     28
  98%     31
  99%    278
 100%    280 (longest request)

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です