Softwr
Locust logo

Locust

Open-source load testing tool where scenarios are written in plain Python

As of 25 November 2026, Locust is free to use. Locust is an MIT-licensed load testing tool that simulates many users with scenarios written in Python, with a web UI and distributed runs. Softwr lists it under Testing. Locust is available on API.

Overview

What is Locust?

Locust is an open-source load and performance testing tool in which test scenarios are written as ordinary Python code. Users are defined as Python classes and tasks, with loops and conditionals, and each simulated user runs in a lightweight greenlet built on gevent, so a single process can handle many concurrent users. Load can be spread across multiple machines for distributed testing. A web interface shows test progress in real time and lets you change the load while a test runs, and tests can also run headless for CI/CD. It is aimed mainly at websites and services over HTTP, but can be extended to test other systems, and users can add custom reporting, wrappers and load shapes. Installation is from PyPI with pip install locust, and tests are started with locust -f locustfile.py. The original authors are Jonatan Heyman, Carl Bystrom, Joakim Hamren and Hugo Heyman, and the repository is under the MIT licence. Locust is free to use. The vendor-supported Locust.cloud offers a hosted version and commercial support, and a Visual Studio Code extension and Azure Load Testing integration are available. Because tests are code, it suits developers more than testers who prefer a graphical recorder, and it does not include browser-level testing out of the box.

What people use it for

  • Load testing web APIs
  • Stress testing websites
  • CI performance checks
  • Simulating user behaviour as code

The honest half

Where does Locust fall short?

The limits buyers hit most with Locust: hosted runs and support come from the separate Locust.cloud service; and large tests need several machines configured for distributed mode. Each is concrete and checkable: the half of a review a vendor will not write.

  • Scenarios must be written in Python; there is no graphical recorder
  • Built mainly for HTTP; other protocols need custom code
  • Hosted runs and support come from the separate Locust.cloud service
  • Large tests need several machines configured for distributed mode

Cross-shopped

What are the alternatives to Locust?

The closest alternatives to Locust are k6, Apache JMeter and Gatling. Each is a tool buyers genuinely weigh against it, with the reason why.

Capabilities

What can Locust do?

Locust lists 8 features, including test scenarios written in Python, distributed load generation and real-time web UI.

  • Test scenarios written in Python

  • Distributed load generation

  • Real-time web UI

  • Headless mode for CI/CD

  • Lightweight greenlet users on gevent

  • Extensible with custom load shapes and reporting

  • VS Code extension

  • Azure Load Testing support

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

What licence does Locust use?

The GitHub repository states the MIT licence.

Source
How do I install it?

Install from PyPI with pip install locust and run locust -f locustfile.py.

Source
Does it support distributed testing?

Yes, load can be spread across multiple machines.

Source

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from Locust

Best Testing software for

Compare Locust with

Other Testing software

  • Open source Java tool for load and performance testing across many protocols

    Free plan11 researched notes
  • Load testing tool with JavaScript tests on a Go runtime, now owned by Grafana Labs

    Open source12 researched notes
  • Load testing tool with an open-source core and a commercial enterprise platform

    Free, then €99/mo11 researched notes
  • Real device cloud for web and mobile testing

    From $12.5/mo14 researched notes
  • Natural language test automation for web, mobile and API with a self hosted open source edition

    Free plan14 researched notes
  • Keyword-driven test automation framework governed by a member-funded foundation

    Open source16 researched notes
  • Open-source web automation framework for testing and scripting across browsers

    Free plan11 researched notes
  • Native test management for Jira, licensed per Jira user rather than per tester

    13 researched notes
  • Test case management priced per user, owned by the Idera software group

    From $38/mo16 researched notes
  • AI-based visual regression testing, priced on component and page checkpoint volume

    From $667/mo13 researched notes
  • A/B testing and feature experimentation with a hybrid client and server-side engine

    Pricing on request12 researched notes
  • Test management platform priced per user with a 10-licence minimum on its top tier

    From $47/mo12 researched notes
  • Java testing framework created by Cedric Beust, still actively maintained but effectively a single-lead project

    Open source11 researched notes
  • Fast unit test framework powered by Vite

    Open source10 researched notes
  • Behaviour-driven development testing framework that returned to community ownership after nine years under SmartBear

    Open source11 researched notes
  • Warehouse-native experimentation and feature flagging, now sold as Datadog Experiments

    Pricing on request13 researched notes
  • Test intelligence tool, formerly Launchable, that selects tests relevant to each change

    Pricing on request12 researched notes
  • Visual regression testing owned by BrowserStack, with a permanent free tier for low screenshot volume

    Free plan13 researched notes

Softwr does not host reviews and shows no star rating for Locust, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Locust

Best Testing software alternatives

Automated UI testing tool for desktop, web and mobile apps from SmartBear

quote

JavaScript test framework for Node.js and the browser, an OpenJS Foundation project

open-source

Visual, accessibility and interaction testing for UI components, made by Storybook maintainers

freemium

Load testing tool with an open-source core and a commercial enterprise platform

freemium

Open source API testing tool for REST, SOAP and GraphQL, from SmartBear

open-source

Test intelligence tool, formerly Launchable, that selects tests relevant to each change

quote

Compare Locust with alternatives