51Testing软件测试论坛
标题:
Linux下的web压力测试工具
[打印本页]
作者:
developing_T
时间:
2006-3-22 11:50
标题:
Linux下的web压力测试工具
发现一个开源的HTTP压力测试工具,C编写
Siege
一个开放源代码项目:
http://www.joedog.org/siege/
我运行了一下这个测试程序,还不错,结果显示如下:
模拟10人,循环两次,从一个含有N行url的文本文件里读取url地址进行连接,测试结果:
** siege 2.64
** Preparing 10 concurrent users for battle.
The server is now under siege...
HTTP/1.1 200 0.46 secs: 5918 bytes ==> /
HTTP/1.1 200 0.01 secs: 5918 bytes ==> /
HTTP/1.1 200 0.23 secs: 5918 bytes ==> /
HTTP/1.1 200 1.00 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 1.65 secs: 5918 bytes ==> /
HTTP/1.1 200 0.76 secs: 5918 bytes ==> /
HTTP/1.1 200 0.78 secs: 5918 bytes ==> /
HTTP/1.1 200 0.80 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 0.99 secs: 5918 bytes ==> /
HTTP/1.1 200 0.23 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 0.23 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 0.01 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 2.39 secs: 5918 bytes ==> /
HTTP/1.1 200 0.23 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 1.88 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 1.66 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 7.69 secs: 5918 bytes ==> /
HTTP/1.1 200 0.45 secs: 10985 bytes ==> /index.shtml
HTTP/1.1 200 8.16 secs: 5918 bytes ==> /
HTTP/1.1 200 0.69 secs: 10985 bytes ==> /index.shtml
done.
Transactions: 20 hits
Availability: 100.00 %
Elapsed time: 8.85 secs
Data transferred: 0.16 MB
Response time: 1.52 secs
Transaction rate: 2.26 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 3.42
Successful transactions: 20
Failed transactions: 0
Longest transaction: 8.16
Shortest transaction: 0.01
我对这个用具也是刚刚接触,大家一起研究吧,开源的C编写
C语言高手,希望改写此工具并拓展功能的 可以联系我 QQ群: 22264202
[
本帖最后由 developing_T 于 2006-3-22 12:00 编辑
]
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2