Locust

Open source

Locust is an open-source load testing tool where user scenarios are written in plain Python and can run distributed across machines.

locust.cloud
Locust homepage screenshot
GitHub stars
28k
Last 30 days
+74(+0%)
Last commit
3 days ago
Repository age
15 years
Version
2.47.0
Licence
MIT
Self-hosted
Yes

About Locust

Locust is an open-source performance and load testing tool for HTTP and other protocols. Tests are defined as ordinary Python code, so you can use loops, conditions and any Python library, and your design is never restricted by a GUI or a domain-specific language. It is released under the MIT license. Scenarios can be edited in a normal IDE and kept under version control like other code.

Locust runs each simulated user in its own greenlet, so tests read like blocking code instead of callbacks. It is event-based using gevent, which lets a single process handle many thousands of concurrent users, and load tests can be distributed over multiple machines. You can run it from the command line or through a web interface that shows throughput, response times and errors in real time, with data exportable for later analysis. A pluggable architecture lets you extend it.

Key features

  • Test scenarios written in plain Python
  • Distributed load generation across machines
  • Web UI with real-time throughput and errors
  • Command-line mode for CI pipelines
  • Event-based design for many concurrent users
  • Pluggable architecture for extensions

Good fit for

  • Load testing web APIs from Python code
  • Finding performance limits before launch
Built with
Python tools
Tags
load-testing
performance-testing
python
benchmarking
http
distributed
devops
api-testing

Locust: questions and answers

What is Locust used for?
Locust is an open-source load testing tool where user scenarios are written in plain Python and can run distributed across machines. It is a good fit for load testing web APIs from Python code and finding performance limits before launch.
Is Locust open source?
Yes. Locust is open source under the MIT licence. Its source code is on GitHub at locustio/locust and is written mainly in Python.
Is Locust free?
Yes. Locust is open source, so the software itself is free to use.
What is Locust an alternative to?
Locust is an open-source alternative to OpenText LoadRunner, BlazeMeter, loader.io and Catchpoint. Other open-source alternatives to OpenText LoadRunner include k6, Gatling and Apache JMeter.
Is Locust actively maintained?
Yes. The most recent commit to Locust was on 10 November 2026, and the latest release is 2.47.0, published on 21 October 2026. The project has 28k stars on GitHub, with 74 added in the last 30 days.

Open-source alternatives to Locust

See all

SaaS alternatives to Locust

See all