Softwr
Locust logo

Locust

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

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
  • Cloud load and performance testing platform built around JMeter, with API monitoring

    Free, then $149/mo12 researched notes
  • Enterprise performance and load testing platform from Tricentis

    Pricing on request12 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
  • AI-based visual regression testing, priced on component and page checkpoint volume

    From $667/mo13 researched notes
  • Test case management priced per user, owned by the Idera software group

    From $38/mo16 researched notes
  • Node.js library for controlling Chrome and Firefox

    Open source10 researched notes
  • Commercial low-code test automation platform built on Appium and Selenium, priced per seat plus separate cloud session add-ons

    Free, then $1,800/yr14 researched notes
  • JavaScript end-to-end testing framework with browser-based runner and cloud service

    Free, then $67/mo13 researched notes
  • Open source mobile automation framework hosted under the OpenJS Foundation with copyright assigned to the foundation

    Open source13 researched notes
  • Cloud device and browser testing platform, priced per plan tier with unlimited testing minutes rather than metered by the minute

    From $39/mo14 researched notes
  • REST and GraphQL API client for development and testing

    Free plan12 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

AI-assisted test automation for web, mobile and Salesforce apps

freemium

Enterprise performance and load testing platform from Tricentis

quote

SmartBear API testing platform for functional, security, performance and virtualised tests

quote

Enterprise web and mobile testing cloud from Perforce with real devices and AI test creation

quote

Cloud load and performance testing platform built around JMeter, with API monitoring

freemium

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

Compare Locust with alternatives