PageRenderTime 35ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/benchmarks/scenarii/templates/base.erb

http://github.com/AF83/ucengine
Ruby HTML | 43 lines | 30 code | 4 blank | 9 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. <!--
  4. Use the following root element if you want to debug the scenario.
  5. This 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. <!-- to start os monitoring (cpu, network, memory). Use an erlang
  18. agent on the remote machine or SNMP. erlang is the default -->
  19. <monitoring>
  20. <monitor host="localhost" type="munin"></monitor>
  21. </monitoring>
  22. <load duration="<%= load['duration'] %>" unit="<%= load['unit'] %>">
  23. <% arrivals.each_with_index do |arrival, index| %>
  24. <arrivalphase phase="<%= index + 1 %>" duration="<%= arrival['duration'] %>" unit="minute">
  25. <users interarrival="<%= arrival['duration'] * 60.0 / arrival['users'] %>" unit="second"></users>
  26. </arrivalphase>
  27. <% end %>
  28. </load>
  29. <options>
  30. <option name="file_server" id="users" value="users.csv"/>
  31. </options>
  32. <sessions>
  33. <% sessions.each_with_index do |session, index| %>
  34. <session name='<%= session['name'] %>' probability='<%= session['probability'] %>' type='ts_http'>
  35. <%= render_session(session) %>
  36. </session>
  37. <% end %>
  38. </sessions>
  39. </tsung>