Locust is an open-source load-testing tool for simulating user behavior against services. It distributes tests across machines, scales toward millions of users, and provides a web interface for observing runs. section 6.3.2
Use Locust when you need to:
- Increase users gradually with custom load shapes and watch throughput for bottlenecks. section 6.3.2
- Run tests in Docker, Kubernetes, or distributed environments while monitoring CPU, GPU, and memory usage. section 6.3.2
- Extend standard metrics when testing streaming services, although custom metrics require additional code. section 6.3.2
Streaming LLM test
Define an HttpUser that posts prompts to a streaming endpoint, counts returned tokens, measures latency and time to first token, calculates tokens per second, and records results.
