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
- Tags
- load-testing
- performance-testing
- python
- benchmarking
- http
- distributed
- devops
- api-testing
Open-source alternatives to Locust
See all
Apache JMeter
Testing & QA
Apache JMeter open-source load testing tool for analyzing and measuring the performance of
Apache-2.0vs OpenText LoadRunner★ 9.6k
k6
Testing & QA
A modern load testing tool, using Go and JavaScript
AGPL-3.0vs OpenText LoadRunner★ 32k
Artillery
Testing & QA
The complete load testing platform. Everything you need for production-grade load tests. S
MPL-2.0vs OpenText LoadRunner★ 9.1k
Gatling
Testing & QA
Modern Load Testing as Code
Apache-2.0vs OpenText LoadRunner★ 7k
Karate
Testing & QA
Test Automation Made Simple
MITvs Postman★ 9k
github-action-benchmark
Testing & QA
GitHub Action for continuous benchmarking to keep performance
MIT★ 1.3k
SaaS alternatives to Locust
See all
OpenText LoadRunner
Testing & QA
Performance and load testing software for enterprise applications
SaaS
BlazeMeter
Testing & QA
Continuous testing platform for load testing and API testing from Perforce
SaaS
loader.io
Testing & QA
Cloud load testing service for web apps and APIs from SendGrid
SaaS
Codecov
Testing & QA
Code coverage reporting and test analytics that comments on pull requests
SaaS
Coveralls
Testing & QA
Hosted code coverage tracking that reports on commits and pull requests
SaaS
HeadSpin
Testing & QA
Digital experience testing platform with a global device cloud
SaaS

