转载 http://www.oschina.net/code/snippet_12_3601
[代码] 配置文件 url.list
1 |
http://www.oschina.net/ |
2 |
http://www.oschina.net/project |
3 |
http://www.oschina.net/p/tomcat |
4 |
http://www.oschina.net/news |
5 |
http://my.oschina.net/javayou |
[代码] 使用方法
1 |
siege -c 20 -r 2 -f url.list |
[代码] 输出样例
02 |
** Preparing 20 concurrent users for battle. 这次“战斗”准备了20个并发用户 |
03 |
The server is now under siege.. done . 服务在“围攻”测试中: |
04 |
Transactions: 40 hits 完成40次处理 |
05 |
Availability: 100.00 % 成功率 |
06 |
Elapsed time : 7.67 secs 总共用时 |
07 |
Data transferred: 877340 bytes 共数据传输:877340字节 |
08 |
Response time : 1.65 secs 相应用时1.65秒:显示网络连接的速度 |
09 |
Transaction rate: 5.22 trans/sec 平均每秒完成5.22次处理:表示服务器后台处理的速度 |
10 |
Throughput: 114385.92 bytes/sec 平均每秒传送数据:114385.92字节 |
11 |
Concurrency: 8.59 最高并发数 8.59 |
12 |
Successful transactions: 40 成功处理次数 |
13 |
Failed transactions: 0 失败处理次数 |