文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>[实验] flood 测试-3 :动态 url list

[实验] flood 测试-3 :动态 url list

时间:2008-03-11  来源:ailms

注意,软件自带的 examples/ 中的例子是错误,因为不能在 XML 中直接使用 < , > , " 这些字符

必须用 &lt; , &gt; , &quot; 来代替

<urllist>
<name>Test Hosts</name>
<description>A bunch of hosts we want to hit</description>
<url method="GET" responsetemplate="href=&quot;(.*)&quot;&gt;&lt;strong&gt;FAQ&lt;/strong&gt;&lt;/a&gt;" responsename="faq">http://172.17.64.34/manual/</url>
<url method="GET" requesttemplate="http://172.17.64.39/manual/${faq}" />
</urllist>

现在可以执行 flood 了,可以第2个 URL 自动扩展为 Http://172.17.64.39/manual/faq/ 了

[root@dhcp-client examples]# /usr/bin/flood ./my.xml

1205247547765472 1205247547766023 1205247547766101 1205247547771294 1205247547773133 OK -1208104016 http://172.17.64.34/manual/
1205247547773873 1205247547774304 1205247547774323 1205247547775625 1205247547775645 OK -1208104016 http://172.17.64.39/manual/faq/
1205247547776215 1205247547776547 1205247547776569 1205247547781698 1205247547783306 OK -1208104016 http://172.17.64.34/manual/
1205247547783877 1205247547784076 1205247547784094 1205247547785415 1205247547785447 OK -1208104016 http://172.17.64.39/manual/faq/
1205247547785909 1205247547786221 1205247547786237 1205247547791234 1205247547792736 OK -1208104016 http://172.17.64.34/manual/
1205247547793290 1205247547793472 1205247547793489 1205247547794770 1205247547794803 OK -1208104016 http://172.17.64.39/manual/faq/
1205247547795286 1205247547795595 1205247547795610 1205247547800607 1205247547802125 OK -1208104016 http://172.17.64.34/manual/
1205247547802675 1205247547802860 1205247547802877 1205247547804150 1205247547804182 OK -1208104016 http://172.17.64.39/manual/faq/
1205247547804637 1205247547804945 1205247547804960 1205247547809940 1205247547811462 OK -1208104016 http://172.17.64.34/manual/
1205247547811977 1205247547812182 1205247547812200 1205247547813508 1205247547813544 OK -1208104016 http://172.17.64.39/manual/faq/
[root@dhcp-client examples]



[root@dhcp-client examples]# ./analyze-relative /tmp/out

Slowest pages on average (worst 5):
   Average times (sec)
connect write read close hits URL
0.0020 0.0021 0.0116 0.0187 50 http://172.17.64.34/manual/
0.0025 0.0026 0.0053 0.0053 50 http://172.17.64.39/manual/faq/
Requests: 100 Time: 0.12 Req/Sec: 866.63
[root@dhcp-client examples]

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载