Siege
[官方网站][1] [github][2] [1]: https://www.joedog.org/ [2]: https://github.com/JoeDog/siegegit
###Siege的安装github
<!-- lang: shell --> wget http://download.joedog.org/siege/siege-latest.tar.gz tar -zxvf siege-latest.tar.gz cd siege-3.0.9/ ./configure make make install
###Siege的简单使用shell
<!-- lang: shell --> siege -c 50 -r 20 'http://localhost:5000' 并发五十用户访问本地5000端口20次,共1000次访问(GET) siege -c 50 -r 20 'http://localhost:5000 POST request'
readme并发
- -c 模拟c个用户同时访问
- -r 模拟c个用户须要访问r次
- -f 指定一个文件,文件内容< 'http://localhost:5000'
###Siege测试结果分析测试
Result:网站
- Transactions: 1000 hits
- Availability: 100.00 %
- Elapsed time: 1.12 secs
- Data transferred: 0.09 MB
- Response time: 0.05 secs
- Transaction rate: 892.86 trans/sec
- Throughput: 0.08 MB/sec
- Concurrency: 48.96
- Successful transactions: 1000
- Failed transactions: 0
- Longest transaction: 0.12
- Shortest transaction: 0.01
ps:完成1000次处理,百分百成功,共耗时1.12秒,传输数据为0.09MB,响应时间为0.05秒,平均每秒完成892.86次处理, 平均每秒传输数据为0.08MB,实际并发访问为48.96,成功处理1000次,失败次数为0,每次传输花费最高时长为0.12秒, 最短期为0.01秒url
######参考.net