Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2018 08:51
What would you like to do?
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd" [] >
<tsung loglevel="info">
<client host="localhost" use_controller_vm="true" maxusers="60000"/>
<server host="localhost" port="3334" type="tcp"></server>
<!-- <arrivalphase phase="1" duration="300" unit="second">
<users maxnumber="5000" arrivalrate="20" unit="second" />
</arrivalphase> -->
<arrivalphase phase="1" duration="300" unit="second">
<users maxnumber="20000" arrivalrate="100" unit="second" />
<option name="ports_range" min="1025" max="65535"/>
<session probability="100" name="websocket" type="ts_websocket">
<websocket type="connect" path="/cable"></websocket>
<!-- <for var="i" from="1" to="1000" incr="1"> -->
<thinktime value="wait_bidi"></thinktime>
<!-- </for> -->
<!-- <thinktime value="wait_bidi"></thinktime> -->
<!-- <request subst="true">
<websocket type="message" frame="text">
</request> -->
<!-- <for var="i" from="1" to="10" incr="1"> -->
<!-- <thinktime min="10" max="60" random="true"/> -->
<!-- <thinktime value="wait_bidi"></thinktime> -->
<!-- <request>
<websocket type="message" frame="text" ack="no_ack">
{"command":"message","identifier":"{\"channel\":\"MessageChannel\"}","data":"{\"message\":{\"text\":\"message text\"},\"action\":\"create\"}"}
</request> -->
<!-- </for> -->
<!-- <request>
<websocket type="close"></websocket>
</request> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment