# 性能压测工具 siege
#1 安装
# su
cd /usr/local/src/
wget http://download.joedog.org/siege/siege-3.0.8.tar.gz
tar xzvf siege-3.0.8.tar.gz
cd siege-3.0.8
./configure
make && make install
#2 简单使用
siege -c 5 -r 10 192.168.10.100:8081 -b
-c 5 模拟5个用户并发请求
-r 10 重复运行10次
-b 请求无需等待,delay=0
#3 结果说明
Transactions: 总共测试次数
Availability: 成功次数百分比
Elapsed time: 总共耗时多少秒
Data transferred: 总共数据传输
Response time: 等到响应耗时
Transaction rate: 平均每秒处理请求数
Throughput: 吞吐率
Concurrency: 最高并发
Successful transactions: 成功的请求数
Failed transactions: 失败的请求数