网站压力测试工具webbench简介、安装、使用

webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。
1、适用系统:
Linux

2、编译安装:
wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5make && make install

3、使用:
make && make install 报错
ctags *.c/bin/sh: ctags: command not foundmake: [tags] Error 127 (ignored)install -s webbench /usr/local/bininstall -m 644 webbench.1 /usr/local/man/man1install: cannot create regular file `/usr/local/man/man1′: No such file or directorymake: *** [install] Error 1
**解决办法:
**[root@localhost webbench-1.5]#
mkdir /usr/local/man[root@localhost webbench-1.5]# make && make install

4、测试
[root@localhost webbench-1.5]# webbench -c 500 -t 30 http://127.0.0.1/index.html

5.结果:
Webbench – Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://127.0.0.1/phpinfo.php500 clients, running 30 sec.Speed=10052 pages/min, 7572446 bytes/sec.Requests: 5026 susceed, 0 failed.

你可能感兴趣的:(网站压力测试工具webbench简介、安装、使用)