Created
July 6, 2018 08:51
-
-
Save mdesantis/c8c01722ba62f1aac83532ed09ae5354 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd" [] > | |
<tsung loglevel="info"> | |
<clients> | |
<client host="localhost" use_controller_vm="true" maxusers="60000"/> | |
</clients> | |
<servers> | |
<server host="localhost" port="3334" type="tcp"></server> | |
</servers> | |
<load> | |
<!-- <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" /> | |
</arrivalphase> | |
</load> | |
<options> | |
<option name="ports_range" min="1025" max="65535"/> | |
</options> | |
<sessions> | |
<session probability="100" name="websocket" type="ts_websocket"> | |
<request> | |
<websocket type="connect" path="/cable"></websocket> | |
</request> | |
<!-- <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"> | |
{"command":"subscribe","identifier":"{\"channel\":\"MessageChannel\"}"} | |
</websocket> | |
</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\"}"} | |
</websocket> | |
</request> --> | |
<!-- </for> --> | |
<!-- <request> | |
<websocket type="close"></websocket> | |
</request> --> | |
</session> | |
</sessions> | |
</tsung> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment