• ab压力测试


    ab -n -c http://xxx.com/

    -n 次数

    -c 客户端数

    [root@localhost wang]# ab -n 10000 -c 1000 http://127.0.0.1:9501/
    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 127.0.0.1 (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:        swoole-http-server
    Server Hostname:        127.0.0.1
    Server Port:            9501
    
    Document Path:          /
    Document Length:        28 bytes
    
    Concurrency Level:      1000
    Time taken for tests:   0.842 seconds
    Complete requests:      10000
    Failed requests:        0
    Write errors:           0
    Total transferred:      1910000 bytes
    HTML transferred:       280000 bytes
    Requests per second:    11880.45 [#/sec] (mean)
    Time per request:       84.172 [ms] (mean)
    Time per request:       0.084 [ms] (mean, across all concurrent requests)
    Transfer rate:          2215.98 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0   20   3.7     20      38
    Processing:     7   33  10.3     31      70
    Waiting:        0   26   8.0     25      52
    Total:         25   53  11.5     51      94
    
    Percentage of the requests served within a certain time (ms)
      50%     51
      66%     54
      75%     56
      80%     58
      90%     65
      95%     85
      98%     90
      99%     93
     100%     94 (longest request)
    [root@localhost wang]# 
    

      

  • 相关阅读:
    HDOJ_1010 Tempter of the Bone
    矩阵旋转
    HDU 2544 最短路 http://acm.hdu.edu.cn/showproblem.php?pid=2544
    题目连接:http://acm.zznu.edu.cn/problem.php?id=1329
    队列/优先队列(代码简单模式)
    虚拟方法调用
    Vim中分屏(整理)
    Java Web设计模式之依赖倒换原则
    Java Web 设计模式之开闭原则
    Java 2+2=5
  • 原文地址:https://www.cnblogs.com/brady-wang/p/13360600.html
Copyright © 2020-2023  润新知