LoadTesting
Name | Message | Date |
---|---|---|
results | ||
.gitignore | ||
.python-version | ||
readme.md | ||
requirements.txt |
Requirements
- Python 2.7
- pip Python Package Manager
Instructions
Install packages in requirements.txt
$ pip install -r requirements.txt
This script uses locust.io, an open source load testing tool. It can be configured and run from the locustfile
in the code directory using the following command:
For /exportImage/
REST endpoint of dynamic services
#./code/
$ locust -f locustfile_exportImage.py
For /tile/{zoom}/{y}/{x}/
REST endpoints for cached tile services
#./code/
$ locust -f locustfile_tileImage.py
Once run, you can navigate to http://localhost:8089/
for the web ui. Here you will defined two options:
- Number of Users - total number of users
- Hatch Rate - rate at which to spawn them
See also
Original script credit dustin schmidt: