Quick and easy
Start load testing in minutes, not weeks! Our AI will help you generate test scenarios from recorded interactions or production code, and even analyze results!
Configurable and scalable
Locust tests are expressed in plain Python code, and can use any library/protocol Python can, for example SocketIO, Kafka, Postgres and MongoDB.
Automated
With Locust in your CI pipeline or running on a schedule, you proactively verify performance instead of relying on ad-hoc test runs that are easy to forget.
Proven Open Source
Locust is available under the MIT License, and has a large community. It has been around for more than 10 years. We're with you for the long term.
1from locust import HttpUser, task
2
3class QuickstartUser(HttpUser):
4 @task
5 def hello_world(self):
6 self.client.get("/hello")
7 self.client.get("/world")
8
9 for i in range(10):
10 self.client.get(f"/item/{i}")