ab壓測基本使用

ab命令解析

ab -n 100 -c 10 https://csdn.net/

-n總共請求次數
-c每次請求併發量

返回參數

Server Software:        openresty
Server Hostname:        csdn.net
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Server Temp Key:        ECDH P-256 256 bits
TLS Server Name:        csdn.net

Document Path:          /
Document Length:        182 bytes

Concurrency Level:      10
Time taken for tests:   1.348 seconds
Complete requests:      100
Failed requests:        0
Non-2xx responses:      100
Total transferred:      37000 bytes
HTML transferred:       18200 bytes
Requests per second:    74.17 [#/sec] (mean)
Time per request:       134.823 [ms] (mean)
Time per request:       13.482 [ms] (mean, across all concurrent requests)
Transfer rate:          26.80 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       39   94  18.4     95     128
Processing:     6   25  20.7     13      85
Waiting:        6   20  15.4     11      69
Total:         92  119  21.4    116     202

Percentage of the requests served within a certain time (ms)
  50%    116
  66%    119
  75%    127
  80%    129
  90%    148
  95%    181
  98%    183
  99%    202
 100%    202 (longest request)
  1. Concurrency Level: 10 併發數
  2. Time taken for tests: 1.348 seconds (壓力測試消耗的總時間)
  3. Requests per second: 74.17 [#/sec] (mean) 平均每秒請求數
  4. Time per request: 13.482 [ms] (mean, across all concurrent requests) 單個用戶請求一次的平均時間
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章