Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 993 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 993 Bytes

Locust Load Testing

Setup Environment

In your Python environment with model dependencies installed, install the Locust utility:

pip install -r requirements.txt

Load Test

Run a test using a dataset of variable input prompts generated by generate_prompts.

Command to run the load test:

locust --config locust_config.conf

Test Configuration

You can configure Locust tests using .conf files. The key configurations to modify are:

  • users: Maximum number of concurrent users.
  • spawn-rate: Number of users spawned per second.
  • run-time: Total duration of the test (e.g., 300s, 20m, 3h, 1h30m, etc.).

For more details, see the Locust configuration guide.

Example

To run a test with 32 users, all launched simultaneously, for a duration of 3 minutes, set the parameters:

users = 32
spawn-rate = 32
run-time = 3m