|
Webbench是有名的网站压力测试工具 编译安装:
wget http://www.sfr-fresh.com/unix/privat/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
webbench安装报错没有安装ctags
如果没有安装 ctags make 编译会报错:/bin/sh: ctags: command not found
yum install ctags
没有安装gcc
这时候可能会报错:
cc: Command not found
这时需要gcc:
yum install gcc
其他报错如果出现下面的错误:
cannot create regular file `/usr/local/man/man1′: No such file or directory
这时需要创建/usr/local/man/man1文件来解决:
mkdir -m 644 -p /usr/local/man/man1
开始测试:
webbench -c 500 -t 30 http://127.0.0.1:8080
参数说明:-c表示并发数,-t表示时间(秒)
最后就会出现详细的测试信息了:
Webbench – Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET
500 clients, running 30 sec.
Speed=3230 pages/min, 11614212 bytes/sec.
Requests: 1615 susceed, 0 failed.
|
|