webbench只能运行在linux下,本人在centOS 6 下测试成功
命令与编译
wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
如果发现报错,可以选择安装gcc编译
yum install gcc
webbench -c 500 -t 30 http://127.0.0.1/index.html
会得出以下结果
-----------------------------------------------------------------------------------------------------
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://127.0.0.1/index.html
500 clients, running 30 sec.
Speed=3230 pages/min, 11614212 bytes/sec.
Requests: 1615 susceed, 0 failed.
-------------------------------------------------------------------------------