Siege官方:http://www.joedog.org/
Siege下載:http://www.joedog.org/pub/siege/siege-latest.tar.gz
Siege解壓並安裝:
# tar -zxvf siege-latest.tar.gz # cd siege-latest/ #./configure #make #make install
Siege使用:
# siege -h 查看相關使用幫助
#siege -c 100 -r 5 -f test.url -c是併發量,-r是重複次數。 url文件就是一個文本,每行都是一個url,它會從裏面隨機訪問的。 完成後的輸出如下: Transactions: 5000 hits 完成5000次處理 Availability: 100.00 % 100% 的成功率 Elapsed time: 294.78 secs 總共用時 Data transferred: 53.89 MB 總數據傳輸量 Response time: 5.72 secs 顯示網絡連接的速度 Transaction rate: 16.96 trans/sec 平均每秒完成0.53次處理表示服務器 Throughput: 0.18 MB/sec 平均每秒傳輸數據 Concurrency: 97.02 實際最高併發數 Successful transactions: 5000 成功處理次數 Failed transactions: 0 失敗處理次數 Longest transaction: 26.17 每秒傳輸所花費的時間 Shortest transaction: 0.01 每次傳輸所花費最短的時間g