网站压力测试工具 php,网站压力测试工具

1.Web Bench

Web Bench is very simple tool for benchmarking WWW or proxy servers.

下载地址:http://home.tiscali.cz/~cz210552/webbench.html

./webbench -c500 -t30 http://127.0.0.1/info.php

-c并发请求数

-t运行测试时间

2.ab

#ab -c500 -n100 http://127.0.0.1/info.php

-c并发请求数

-n总的请求个数

# ab -c200 -n1000 http://127.0.0.1/info.php

Server Software:        Apache/2.2.3

Server Hostname:        127.0.0.1

Server Port:            80

Document Path:          /info.php

Document Length:        50014 bytes

Concurrency Level:      200  //并发请求数

Time taken for tests:   2.598296 seconds

Complete requests:      1000  //总请求

Failed requests:        0

Write errors:           0

Total transferred:      50235185 bytes

HTML transferred:       50064014 bytes

Requests per second:    384.87 [#/sec] (mean)  //服务器每秒平均处理请求数

Time per request:       519.659 [ms] (mean)

Time per request:       2.598 [ms] (mean, across all concurrent requests)

Transfer rate:          18880.45 [Kbytes/sec] received

Connection Times (ms)

min  mean[+/-sd] median   max

Connect:        0   21  30.9      8      94

Processing:    39  329 490.5    219    2503

Waiting:       26  321 491.8    210    2503

Total:         83  351 506.4    228    2597

Percentage of the requests served within a certain time (ms)

50%    228

66%    234

75%    240

80%    244

90%    295

95%   1411

98%   2577

99%   2591

100%   2597 (longest request)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值