[原创]Linux下Siege压力测试工具使用介绍

[原创]Linux下Siege压力测试工具使用介绍 

Siege 官方网站: http://www.joedog.org/siege-home/

1 安装操作步骤:

# tar -zxf siege-2.67.tar.gz

# cd siege-2.67

#./configure

# make

#make install

 

2 Siege 工具使用介绍

[root@localhost ~]# siege -c 20 -r 10 -f mayingbao.txt

参数说明:-c表示并发数,-r重复次数 mayingbao.txt表示存放的具体url

如我的mayingbao.txt存放的文件为:

 

http://mayingbao.cnblogs.com/

http://www.cnblogs.com/

http://news.cnblogs.com/

 

 测试完成后,结果显示如下:

显示如下信息:

done.

Transactions:                    200 hits

Availability:                 100.00 %

Elapsed time:                   7.05 secs

Data transferred:               4.06 MB

Response time:                  0.18 secs

Transaction rate:              28.37 trans/sec

Throughput:                     0.58 MB/sec

Concurrency:                    5.06

Successful transactions:         200

Failed transactions:               0

Longest transaction:            2.00

Shortest transaction:           0.02

  

更详细的内容请参考官方网站:http://www.joedog.org/siege-manual/

 

posted @ 2009-09-04 17:03  卖烧烤的鱼  阅读(2096)  评论(0编辑  收藏  举报