码迷,mamicode.com
首页 > Web开发 > 详细

webbench压力测试工具

时间:2014-10-23 21:10:59      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:linux webbench压力测试

webbench安装

wget http://home.tiscali.cz/~cz210552/webbench.html

tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make
make install

Apache测试实例结果:
当并发300时,
root [ ~ ]# webbench -c 300 -t 60 http://192.168.80.157/phpinfo.php
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open 
Source Software.

Benchmarking: GET http://192.168.80.157/phpinfo.php
300 clients, running 60 sec.

Speed=24525 pages/min, 20794612 bytes/sec.
Requests: 24525 susceed, 0 failed.

每秒钟响应请求数:24525 pages/min,每秒钟传输数据量20794612 bytes/sec.

当并发1000时,已经显示有87个连接failed了,说明超负荷了。

root [ ~ ]# webbench -c 1000 -t 60 http://192.168.80.157/phpinfo.php
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://192.168.80.157/phpinfo.php
1000 clients, running 60 sec.

Speed=24920 pages/min, 21037312 bytes/sec.
Requests: 24833 susceed, 87 failed.


webbench压力测试工具

标签:linux webbench压力测试

原文地址:http://sijin.blog.51cto.com/7412414/1567198

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!