ab 压力测试--参数详情

H:\phpStudy2\Apache\bin>ab -n 1000 -c 100 http://www.php.com/test.php

     -n 请求数  -c 病发数

This is ApacheBench, Version 2.3 < Revision:1748469 >
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.php.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests

Server Software: Apache/2.4.23
Server Hostname: www.php.com
Server Port: 80

Document Path: /test.php
Document Length: 38890 bytes #HTTP 响应正文的长度

Concurrency Level: 100 #病发的级别
Time taken for tests: 5.772 seconds #所有请求花费的时间
Complete requests: 1000 #完成请求数
Failed requests: 0 #失败请求数
Total transferred: 39087000 bytes #网络传输总量
HTML transferred: 38890000 bytes #HTML 内容传输量
Requests per second: 173.25 [#/sec] (mean) #吞吐量– 每秒请求数
Time per request: 577.210 [ms] (mean) # 服务器接收到请求后,响应页面花费的时间
Time per request: 5.772 [ms] (mean, across all concurrent requests)# #处理每一个病发平均花费的时间
Transfer rate: 6613.00 [Kbytes/sec] received #平均每秒网络上的流量,可以用于排除是否是网络流量过大导致的时间延长问题

.#网络上消耗的时间的分解
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.7 0 84
Processing: 19 547 243.1 599 1099
Waiting: 8 520 235.7 543 1087
Total: 20 547 243.2 599 1099

.#在一定时间内送达请求数
Percentage of the requests served within a certain time (ms)
50% 599 #百分之50的请求数,相应时间这里写代码片小于599 毫秒
66% 708
75% 771
80% 785
90% 831
95% 867
98% 905
99% 953
100% 1099 (longest request)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值