LoadTesting

Name Message Date
code
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:

  1. Number of Users - total number of users
  2. Hatch Rate - rate at which to spawn them

See also

Original script credit dustin schmidt:

here

Reference