一、下载安装:
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
二、使用:
webbench -c 500 -t 30 http://127.0.0.1/index.html
参数说明:-c表示并发数,-t表示时间(秒)
三、测试结果:
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://127.0.0.1/index.php
2000 clients, running 30 sec.

Speed=3370 pages/min, 204142 bytes/sec.
Requests: 1685 susceed, 0 failed