ab命令做简单压测

ab命令做简单压测

ab -c 10 -n 100 https://baidu.com/
# -c 10 表示并发用户数为10
# -n 10 表示请求总数为100
[root@sxlc-152 siyang]# ab -c 10 -n 100 https://baidu.com/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking baidu.com (be patient).....done


Server Software:        bfe/1.0.8.18
Server Hostname:        baidu.com
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128

Document Path:          /
Document Length:        161 bytes

Concurrency Level:      10
Time taken for tests:   1.738 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Non-2xx responses:      100
Total transferred:      35200 bytes
HTML transferred:       16100 bytes
Requests per second:    57.53 [#/sec] (mean)
Time per request:       173.823 [ms] (mean)
Time per request:       17.382 [ms] (mean, across all concurrent requests)
Transfer rate:          19.78 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      115  119   2.1    119     124
Processing:    37   38   0.6     38      41
Waiting:       37   38   0.7     38      41
Total:        153  157   2.6    157     164

Percentage of the requests served within a certain time (ms)
  50%    157
  66%    158
  75%    159
  80%    160
  90%    162
  95%    162
  98%    163
  99%    164
 100%    164 (longest request)
上一篇:pandas的高级操作


下一篇:机器学习入门:极度舒适的GBDT原理拆解