压力测试工具siege的使用

一、安装
解压后进入目录
1. ./configure
2. make
3. make install

二、使用
1. siege.config 
会在$HOME/下生成.siegerc
2. siege -C 
查看当前配置
3. 常用测试方法 
siege -c "并发用户数" -r "重复数量" -b "url"
例:siege -c 200 -r 10 -b $url

三、测试结果
例:
done. Transactions: 2000 hits
Availability: 100.00 %
Elapsed time: 10.55 secs
Data transferred: 1.28 MB
Response time: 0.61 secs
QPS: Transaction rate: 189.49 trans/sec 
Throughput: 0.12 MB/sec
Concurrency: 114.66
Successful transactions: 2000
Failed transactions: 0
Longest transaction: 9.16
Shortest transaction: 0.01

你可能感兴趣的:(siege)