This code will work with the most recent version of oTree. For older ones, a slightly different approach is needed. DM me.
-
Install locust:
pip install locust
-
Run
locust
in a folder where thelocustfile.py
is located. -
In browser go to http://localhost:8089
- Copy the Session-wide link and paste to Locust. Provide number of users (corresponding to number of users in a session you created), and the speed of hatching (how quckly they join the game.)
- Observe how they start playing and the response times, and if there are any failures there.