webbench最多能夠模擬3萬個併發鏈接去測試網站的負載能力,我的感受要比Apache自帶的ab壓力測試工具好,安裝使用也特別方便。web
wget http://www.ha97.com/code/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5makemake install複製代碼
webbench -c 1000 -t 30 http://127.0.0.1/test.jpg參數說明:-c表示併發數,-t表示時間(秒)複製代碼
Webbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://127.0.0.1/test.jpg500 clients, running 30 sec.Speed=3230 pages/min, 11614212 bytes/sec.Requests: 1615 susceed, 0 failed.複製代碼