mirror of
https://github.com/tinode/chat.git
synced 2026-05-07 20:12:42 +00:00
Tinode Load Testing
Content of this directory is for running rudimentary load tests of Tinode server. You need this only if you want to run your own load tests.
Tsung
The tsung.xml is a configuration for Tsung. The tinode.beam is an erlang binary required by the test to generate base64-encoded user-password pairs. The tinode.erl is the source for tinode.beam (erlc tinode.erl -> tinode.beam).
Install Tsung, then run the test
tsung -f ./tsung.xml start
Gatling
A similar loadtest scenario is also available in Gatling. The configuration file is loadtest.scala.
Run it with (after installing Gatling):
gatling.sh -sf . -rsf . -rd "na" -s tinode.Loadtest
This will be eventually packaged into a docker container.