Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1794014
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: 系统运维

2008-03-11 17:27:21

每个 url 的测试次数 = (farmer 的数量) X (运行测试)

<farmer>
    <name>Joe</name>
    <!-- We run the Joe farmer 10 times
         Note that we have the "time" option which indicates for how many
         seconds a farmer should run. The "time" and "count" elements are
         exclusive. -->
    <count>5count>
    <!-- Farmer Joe uses this profile -->
    <useprofile>Example Profile</useprofile>
  </farmer>

  <!-- A farm contains a bunch of farmers - each farmer is an independent
       worker (i.e. a thread or child process). -->
  <farm>
    <!-- We call our farm "Bingo" - note that the farm must be called Bingo
         in the current implementation. -->
    <name>Bingo</name>
    <!-- We will start 5 farmers named Joe. We will start 2 farmers every 5
         seconds. -->
    <usefarmer count="5" startcount="2" startdelay="5">Joeusefarmer>
  </farm>


所以每个 URL 的测试次数为 5 X 10 = 50 次,见下面的 hits 字段

[root@dhcp-client examples]# ./analyze-relative /tmp/out
Slowest pages on average (worst 5):
   Average times (sec)
connect write read close hits URL
0.0003 0.0004 0.0183 0.0183 50 http://172.17.64.34/cgi-bin/my.cgi
0.0004 0.0004 0.0041 0.0041 50 http://172.17.64.34
0.0002 0.0002 0.0019 0.0020 50 http://172.17.64.39/full-%E5%91%BD%E4%BB%A4%E5%88%97%E8%A1%A8-rhel.txt
Requests: 150 Time: 0.24 Req/Sec: 635.03
[root@dhcp-client examples]#


也可以通过 time 属性来控制,但它和 count 属性是互斥的,但在实际测试中发现,即使同时指定

50> 也不会报错,而且会被
阅读(1916) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~