Table of Contents |
---|
Load Testing
...
Framework - https://github.com/locustio/locust(used currently in edx-load-tests. We also have a fork, and some legacy JMeter scripts)
How to Run Performance Load Tests
Client Side (Browser)
...
- export VAGRANT_X11=1
- vagrant ssh
- First time only: Install SnakeViz. Please update this document with the steps you used if you do it.
- sudo su edxapp
Add the following to the code that you want to profile
Profiling blockCode Block from openedx.core.djangoapps.performance.utils import collect_profile
with collect_profile:
<python_code_to_profile>
Then use SnakeViz by issuing:
snakeviz DIRECTORY/FILE_NAME.profile
...