Locust

Open-source load-testing tool where user behaviour is written in plain Python code.

Locust defines simulated users as Python classes, then swarms a system with many concurrent users while showing live statistics in a web UI. It can run distributed across machines. Because tests are ordinary Python, it is easy to model complex user flows.

Type
Testing
Category
Testing
Maintainer
Locust maintainers
First released
2011
License
Open source (MIT)
Pricing
Open source
Level
Intermediate
Technologies
python, performance-testing
GitHub stars
28,324
Weekly downloads
2,674,736 (pypi)
Latest release
[object Object]
Last verified
26 Nov 2026

What Locust is used for

  • Load testing web apps and APIs
  • Modelling realistic user journeys

Strengths

  • Plain Python scenarios
  • Live web UI
  • Distributed mode

Limitations

  • Python performance limits per worker
  • Less built-in CI thresholding than k6

Locust alternatives

How it relates to other tools

Built with the same technologies

Learn Locust

Official links

Sources

Explore