Nginx压力测试工具之WebBench

人盡茶涼 提交于 2019-12-06 02:10:23

下载webbench软件和安装          

[root@master ~]# tar -zxf webbench-1.5.tar.gz 
[root@master ~]# cd webbench-1.5[root@master webbench-1.5]# mkdir -pv /usr/local/man/man1
[root@master webbench-1.5]# make && make install

[root@master webbench-1.5]# ./webbench -help
webbench [option]... URL
-f|--force Don't wait for reply from server.
-r|--reload Send reload request - Pragma: no-cache.
-t|--time <sec> Run benchmark for <sec> seconds. Default 30.
-p|--proxy <server:port> Use proxy server for request.
-c|--clients <n> Run <n> HTTP clients at once. Default one.
-9|--http09 Use HTTP/0.9 style requests.
-1|--http10 Use HTTP/1.0 protocol.
-2|--http11 Use HTTP/1.1 protocol.
--get Use GET request method.
--head Use HEAD request method.
--options Use OPTIONS request method.
--trace Use TRACE request method.
-?|-h|--help This information.
-V|--version Display program version.

[root@master webbench-1.5]# webbench --version
1.5

使用                

# -- ["-c" 并发数 "-t" 运行测试时间 "URL" 测试地址]

# -- 使用 $: webbench -c 10000 -t 120 URL

测试并发1000               

[root@master ~]# webbench -c 1000 -t 120 http://192.168.1.222/static/index.html
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://192.168.1.222/static/index.html
1000 clients, running 120 sec.

Speed=451048 pages/min, 1841779 bytes/sec.  速度:每秒钟响应请求数:451048,每秒钟传输数据量1841779bytes/sec.
Requests: 902096 susceed, 0 failed.    返回数:902096返回成功,0次返回失败。

测试并发2000                

[root@master ~]# webbench -c 2000 -t 120 http://192.168.1.222/static/index.html
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://192.168.1.222/static/index.html
2000 clients, running 120 sec.

Speed=435235 pages/min, 1777211 bytes/sec.
Requests: 870471 susceed, 0 failed.

WebBench安装及测试 http://www.linuxidc.com/Linux/2013-04/83586.htm

用WebBench测试网站负载 http://www.linuxidc.com/Linux/2013-03/80612.htm

网站压力测试工具 WebBench http://www.linuxidc.com/Linux/2013-01/77510.htm

服务器压力测试工具WebBench的安装和使用 http://www.linuxidc.com/Linux/2012-08/69400.htm

Linux下网站压力测试工具WebBench下载安装使用 http://www.linuxidc.com/Linux/2011-02/31995.htm

Linux中两款并发测试工具ab&WebBench http://www.linuxidc.com/Linux/2011-01/31392.htm

使用Nginx搭建WEB服务器 http://www.linuxidc.com/Linux/2013-09/89768.htm

搭建基于Linux6.3+Nginx1.2+PHP5+MySQL5.5的Web服务器全过程 http://www.linuxidc.com/Linux/2013-09/89692.htm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!