webbench文件下载:
http://at.liuxinxiu.com/2010/09/file/webbench-1_5_tar.gz
1、适用系统:Linux
2、编译安装:
- # wget ←下载源程序
- # tar zxvf webbench-1.5.tar.gz ←解压源文件
- # make ←编译程序
- # mkdir /usr/local/man ←建立相应目录(否则导致无法正常安装)
- # make install ←安装程序
使用方法/
webbench -c 500 -t 30 http://127.0.0.1/test.jpg
测试结果:
- # Webbench - Simple Web Benchmark 1.5
- # Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
- # Benchmarking: GET http://127.0.0.1/test.jpg
- # 500 clients, running 30 sec.
- # Speed=3230 pages/min, 11614212 bytes/sec.
- # Requests: 1615 susceed, 0 failed.
webbench最多可以模拟3万个并发连接去测试网站的负载能力