3-2 PHP-压力测试工具使用演示

使用ab工具进行压力测试
D:\all\phpstudy\Apache\bin>ab -c 10 -n100 www.qzrc.com/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.qzrc.com (be patient).....done


Server Software:        Microsoft-IIS/7.5
Server Hostname:        www.qzrc.com
Server Port:            80

Document Path:          /
Document Length:        179956 bytes

Concurrency Level:      10
Time taken for tests:   2.688 seconds
Complete requests:      100
Failed requests:        2
(Connect: 0, Receive: 0, Length: 2, Exceptions: 0)
Total transferred:      18022350 bytes
HTML transferred:       17995446 bytes
Requests per second:    37.20 [#/sec] (mean) 每秒请求数
Time per request:       268.815 [ms] (mean)
Time per request:       26.882 [ms] (mean, across all concurrent requests) 尽可能小
Transfer rate:          6547.23 [Kbytes/sec] received

Connection Times (ms)
min  mean[+/-sd] median   max
Connect:        4   24   8.7     25      44
Processing:   133  233  27.7    236     297
Waiting:       11   33  14.4     29      82
Total:        163  257  27.4    261     308

Percentage of the requests served within a certain time (ms)
50%    261
66%    269
75%    272
80%    274
90%    289
95%    295
98%    303
99%    308
100%    308 (longest request)

做项目 之前 测试下 时间


做完项目 再次测试下时间
View Code

 

posted on 2017-03-07 01:53 778323309 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/jiaochengli/p/6512810.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值