Locust

Open Source

by Locust

Provided by Locust

Not yet rated
Platform
Web
Pricing
Open Source
Account required
No
Ads
None
Last verified
16 hours ago
Developer
Locust
Official URL

Overview

Locust is an open-source load testing tool. Instead of building a test in a graphical editor or an XML file, you describe what a simulated user does in ordinary Python code, save it as a locustfile, and Locust starts as many of those users as you ask for against your website or service. It is used by developers and testers who want to know how a system behaves under heavy traffic before real visitors find out.

Each simulated user runs in its own lightweight greenlet (the tool is event-based, built on gevent), which is how a single machine can drive a large number of users. When one machine is not enough, a test can be spread over several machines. A built-in web interface shows progress in real time and lets you change the load while the test is running, and the same test can be run without the interface for use in CI/CD pipelines.

Locust is mainly aimed at websites and web services, but because the tests are code, you can write a custom client to exercise almost any system or protocol. It is installed from PyPI with pip and is released under the MIT licence. The maintainers also run Locust Cloud, a commercial offering with paid support and a hosted version.

Features

  • Test scenarios written as plain Python code in a locustfile
  • Each simulated user runs in its own greenlet, built on gevent
  • Distributed mode spreads a test over several machines
  • Web interface showing live progress, with load changes during the run
  • Headless mode for CI/CD pipelines
  • Custom clients for testing systems other than websites
  • Installed with pip from PyPI
  • VS Code extension and an Azure Load Testing integration

Privacy

See the official privacy policy. Locust is software you install and run on your own machines; the project website loads Google Tag Manager.

Pros & Cons

Pros

  • Open source under the MIT licence
  • Tests are normal Python, so they can be version-controlled and reviewed like other code
  • Scales from one laptop to a group of machines
  • Runs with or without the web interface

Cons

  • You need to be able to write Python to build a test
  • No recorder or drag-and-drop test builder is described
  • You supply and manage the machines that generate the load unless you pay for the hosted service
  • The hosted cloud version and dedicated support are commercial

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • k6
    Load Testing · k6

    Load tests APIs and applications using JavaScript scripts.

    Not yet rated
    Open Source Windows Linux
  • Load Testing · Apache JMeter

    Load tests web applications and APIs.

    Not yet rated
    Open Source Windows Linux
  • Load Testing · Gatling

    Load tests applications with a code-based scripting approach.

    Not yet rated
    Open Source Web