并发多线程测试工具

参考  :  http://blog.csdn.net/gfd54gd5f46/article/details/55150748

下载了一个 ab  ,安装很简单也很好用,看到测试结果,有点小小的兴奋  偷笑

保存一下,方便下次使用吧



F:\ApacheBench(ab)压力测试工具(Windows)>ab -n 3000 -c 1000 http://localhost:7001
/zzsbalipayfwc/medicalt/demo


This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Finished 3000 requests


Server Software:
Server Hostname:        localhost
Server Port:            7001


Document Path:          /zzsbalipayfwc/medicalt/demo
Document Length:        395 bytes

//并发 1000 个用户
Concurrency Level:      1000    
Time taken for tests:   31.682812 seconds

//请求次数
Complete requests:      3000
Failed requests:        0
Write errors:           0
Total transferred:      1977000 bytes
HTML transferred:       1185000 bytes

//#最重要的指标之一,相当于LR中的每秒事务数,后面括号中的mean表示这是一个平均值

Requests per second:    94.69 [#/sec] (mean)

//最重要的指标之二,相当于LR中的平均事务响应时间,后面括号中的mean表示这是一个平均值

Time per request:       10560.937 [ms] (mean)

//每个连接请求实际运行时间的平均值
Time per request:       10.561 [ms] (mean, across all concurrent requests)

//平均每秒网络上的流量,可以帮助排除是否存在网络流量过大导致响应时间延长的问题
Transfer rate:          60.92 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.0      1      19
Processing:   562 8576 2691.1   9875   10974
Waiting:      550 8575 2691.3   9874   10974
Total:        563 8576 2691.2   9876   10974
WARNING: The median and mean for the initial connection time are not within a no
rmal deviation
        These results are probably not that reliable.


Percentage of the requests served within a certain time (ms)
  50%   9876
  66%  10058
  75%  10164
  80%  10224
  90%  10374
  95%  10492
  98%  10617
  99%  10693
 100%  10974 (longest request)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值