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)
    
  • 相关阅读:
    【转】JSch
    【转】JSch
    【转】class卸载、热替换和Tomcat的热部署的分析
    关于Tomcat自动加载更新class的小技巧
    MySQL中order by中关于NULL值的排序问题
    MySQL触发器使用详解
    QuartZ Cron表达式
    JDBC的URL设置allowMultiQueries的原因
    CRT:C运行库简介
    IntelliJ IDEA安装AngularJS插件
  • 原文地址:https://www.cnblogs.com/lazy-sang/p/13755214.html
Copyright © 2011-2022 走看看