PageRenderTime 166ms CodeModel.GetById 60ms app.highlight 3ms RepoModel.GetById 57ms app.codeStats 41ms

/benchmarks/scenarii/templates/base.erb

http://github.com/AF83/ucengine
ERB | 43 lines | 39 code | 4 blank | 0 comment | 0 complexity | 3d95e087550420da74cee3019361d063 MD5 | raw file
 1<?xml version="1.0"?>
 2<!DOCTYPE tsung SYSTEM "TSUNG_SHARE_PATH/share/tsung/tsung-1.0.dtd" [] >
 3<!--
 4Use the following root element if you want to debug the scenario.
 5This should be uncommented only for developement purpose.
 6<tsung loglevel="debug" dumptraffic="true" version="1.0">
 7-->
 8<tsung>
 9  <!-- Client side setup -->
10  <clients>
11    <client host="localhost" use_controller_vm="true" maxusers="10000" />
12  </clients>
13  <!-- Server side setup -->
14  <servers>
15    <server host="localhost" port="5280" type="tcp" />
16  </servers>
17
18  <!-- to start os monitoring (cpu, network, memory). Use an erlang
19  agent on the remote machine or SNMP. erlang is the default -->
20  <monitoring>
21    <monitor host="localhost" type="munin"></monitor>
22  </monitoring>
23
24  <load duration="<%= load['duration'] %>" unit="<%= load['unit'] %>">
25  <% arrivals.each_with_index do |arrival, index| %>
26  <arrivalphase phase="<%= index + 1 %>" duration="<%= arrival['duration'] %>" unit="minute">
27    <users interarrival="<%= arrival['duration'] * 60.0 / arrival['users'] %>" unit="second"></users>
28  </arrivalphase>
29  <% end %>
30  </load>
31
32  <options>
33    <option name="file_server" id="users" value="users.csv"/>
34  </options>
35
36  <sessions>
37    <% sessions.each_with_index do |session, index| %>
38    <session name='<%= session['name'] %>' probability='<%= session['probability'] %>' type='ts_http'>
39       <%= render_session(session) %>
40     </session>
41    <% end %>
42  </sessions>
43</tsung>