压测工具Siege
一、下载
http://www.joedog.org/pub/siege/siege-2.70.tar.gz
二、测试 siege -c200 -r10 -f example.url
siege -c50 -d10 -f example.url
-c是并发量,-r是重复次数,-d每间隔 模拟50个用户,web请求间隔时间10秒
Transactions: 250
hits Elapsed time: 14.67
secs Data transferred: 448000
bytes Response time: 0.43 secs
Transaction rate: 17.04 trans/sec
Throughput: 30538.51 bytes/sec
Concurrency: 7.38
Status code 200: 250 Successful
transactions: 250
Failed transactions: 0