向前一步,更近一步,good,webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。
1、Linux压力测试工具webbench适用系统:Linux
2、Linux压力测试工具webbench编译安装:
引用
wget tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
3、Linux压力测试工具webbench使用:
引用
webbench -c 500 -t 30参数说明:-c表示并发数,-t表示时间(秒)
4、Linux压力测试工具webbench测试结果示例:
引用
- Webbench - Simple Web Benchmark 1.5
- Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
- Benchmarking: GET500 clients, running 30 sec.
- Speed=3230 pages/min, 11614212 bytes/sec.
- Requests: 1615 susceed, 0 failed.
1]介绍
webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。
适用系统:Linux
[2]下载
- [root@localhost src]# wget ←下载源程序
- –15:46:22–=> `webbench-1.5.tar.gz’
- Resolving blog.s135.com… 122.200.66.145
- Connecting to blog.s135.com|122.200.66.145|:80… connected.
- HTTP request sent, awaiting response… 200 OK
- Length: 7,675 (7.5K) [application/octet-stream]
- 100%[] 7,675 8.62K/s
- 15:46:30 (8.62 KB/s) - `webbench-1.5.tar.gz’ saved [7675/7675]
- [3]解压、编译和安装
- [root@localhost src]# tar zxvf webbench-1.5.tar.gz ←解压源文件
- webbench-1.5/
- webbench-1.5/webbench.1
- webbench-1.5/socket.c
- webbench-1.5/webbench.c
- webbench-1.5/Makefile
- webbench-1.5/debian/
- webbench-1.5/debian/rules
- webbench-1.5/debian/dirs
- webbench-1.5/debian/copyright
- webbench-1.5/debian/control
- webbench-1.5/debian/changelog
- webbench-1.5/COPYRIGHT
- webbench-1.5/ChangeLog
- [root@localhost src]# cd webbench-1.5
- [root@localhost webbench-1.5]# make ←编译程序
- cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
- webbench.c:77: warning: unused parameter ’signal’
- cc -Wall -ggdb -W -O -o webbench webbench.o
- ctags *.c
- [root@localhost webbench-1.5]# mkdir /usr/local/man ←建立相应目录(否则导致无法正常安装)
- [root@localhost webbench-1.5]# make install ←安装程序
- install -s webbench /usr/local/bin
- install -m 644 webbench.1 /usr/local/man/man1
- install -d /usr/local/share/doc/webbench
- install -m 644 debian/copyright /usr/local/share
webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。以上介绍Linux压力测试工具。
【编辑推荐】