siege 爲壓測開源軟件.
登錄官網http://download.joedog.org/siege/挑選版本
cd /usr/local/src
wget http://download.joedog.org/siege/siege-4.0.4.tar.gz
tar -zxvf siege-4.0.4.tar.gz
cd siege-4.0.4/
./configure --prefix=/usr/local/siege
make && make install
#將命令加入全局
ln -s /usr/local/siege/bin/siege /usr/bin/siege
#開始爲期1分鐘 200併發的請求百度
siege -c 200 -t 1 www.baidu.com
Siege輸出結果說明
Transactions: 總共測試次數
Availability: 成功次數百分比
Elapsed time: 總共耗時多少秒
Data transferred: 總共數據傳輸
Response time: 等到響應耗時
Transaction rate: 平均每秒處理請求數
Throughput: 吞吐率
Concurrency: 最高併發
Successful transactions: 成功的請求數
Failed transactions: 失敗的請求數