Web 性能压力测试工具(WebBench)
作者: forestpro
1、WebBench安装:
wget http://www.ha97.com/code/webbench-1.5.tar.gz tar zxvf webbench-1.5.tar.gz cd webbench-1.5 make make install
2、WebBench使用:
webbench -c 1000 -t 60 http://192.168.80.157/phpinfo.php #webbench -c 并发数 -t 运行测试时间 URL
3、例子
webbench -c 300 -t 60 http://192.168.80.157/phpinfo.php Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. Benchmarking: GET http://192.168.80.157/phpinfo.php 300 clients, running 60 sec. Speed=24525 pages/min, 20794612 bytes/sec. Requests: 24525 susceed, 0 failed.
每秒钟响应请求数:24525 pages/min,每秒钟传输数据量20794612 bytes/sec.
当并发1000时,已经显示有87个连接failed了,说明超负荷了。
本文永久链接: http://itboren.com/226.html