zoukankan      html  css  js  c++  java
  • 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)
    
  • 相关阅读:
    20170226-云计算设计模式翻译-自动伸缩指南(逐字翻译)
    20170723-Ioc与AOP
    20170710-几维晨规
    诸城项目-开发日志
    GPS常识-B版(简)
    GPS常识-A版(详)
    20141209-基本概念-BlogEngine.NET(1)-笔记
    9.聚类分析
    7.分类:基本概念 忌讳
    6.挖掘关联规则
  • 原文地址:https://www.cnblogs.com/lazy-sang/p/13755214.html
Copyright © 2011-2022 走看看