Locust
locust.io
Locust - A modern load testing framework
# This locust test script example will simulate a user # browsing the Locust documentation on https://docs.locust.io import random from locust import HttpUser, between, task from pyquery import PyQuery class AwesomeUser(HttpUser): host = "https://docs.locust.io/en/latest/" # we assume someone who is browsing the Locust docs, # generally has a quite long waiting time (between # 10 and 600 seconds), since there's a bunch of text # on each page wait_time = between(10, 600) def on_start(self): # start by waiting so that the simulated users # won't all arrive at the same time self.wait() # assume a
Blazemeter
blazemeter.com › blog › locust-load-testing
The Definitive Guide to Locust Load Testing | Perforce BlazeMeter
Step 05: Implement a method called on_start that will be executed at the start of our test file. The example described in this section can be found below: import time from locust import HttpUser, task, between class AuthenticateUser(HttpUser): timer = between(1, 10) @task def authenticate_task(self): self.client.get("/login") self.client.get("/register") def on_start(self): self.client.post("/register", json={"username":"testuser", "email":"test@test.com", "password":"password"})
What sort of tools can I use to load test infrastructure that I’m building?
Without knowing more about your needs and any more specifics than the fact that your stack is fronted by a web endpoint, I recommend “bees with machine guns” because it has a silly fun name. https://github.com/newsapps/beeswithmachineguns That said, there are full-on APM platforms out there, several very tried and true like new relic and app dynamics (no affiliation with either) that will give you a picture of your whole stack under load. Sure, your app doesn’t fail until 10,000 hits in a minute or whatever. What failed at 10,001? Was it CPU at the web layer? Was it disk I/O at the database? Did your cache need tuning? Did your API layer fail to garbage collect and began swapping? These are questions 2 thru 6 after you answer question #1, which is “when does my app fail.” If you just load test, you can throw capacity (money) at the problem until you meet your needs... or start answering the “why” question and not just “when” about your stack’s limits, and when you meet them hard. More on reddit.com
Load testing? A beginner guide on how to get started
Hi, best way is to check all metrics and search for anomalies. First metrics I check are: 90 and 99 percentiles latencies errors or other responses Resources on host (CPU, ram, disk) For more information you can check my collection https://github.com/mgasiorowski/performance_testing#web-links More on reddit.com
Open Source Load Testing with Locust: 13 years, 60 million downloads later
Just wanted to say big thank you for working on this great tool I’ve been using Locust for some time now mainly for HA testing for our clustered application It is much more simpler than using Gatling! More on reddit.com
How do I add auth headers to locust?
'Authorization:': should be 'Authorization': Also, this isn't locust specific. Iirc Locust uses Requests, so in the future I'd just tag it Requests and read their docs if you hit issues. May be wrong - Dig into the source code if you wanna confirm. More on reddit.com
Videos
30:17
Load testing with Python and Locust by Lars Holmberg - YouTube
07:14
Python - Locust - Introduction - YouTube
03:26
Load Test Python Apps with Locust - Handle Millions of Users - YouTube
08:09
Load Testing in Python with locust.io (Ep. 1 - Basics) - YouTube
56:58
Automating & evaluating load testing with Locust and Keptn - Keptn ...
01:17:44
Locust - Python based Performance Testing Tool (By Naveen Kumar ...
Locust
docs.locust.io › en › stable › quickstart.html
Your first test — Locust 2.43.3 documentation
$ locust [2021-07-24 09:58:46,215] .../INFO/locust.main: Starting web interface at http://0.0.0.0:8089 [2021-07-24 09:58:46,285] .../INFO/locust.main: Starting Locust 2.43.3 ... Provide the host name of your server and try it out! The following screenshots show what it might look like when running this test using 50 concurrent users, with a ramp up rate of 1 user/s
DataHub
docs.datahub.com › docs › perf-test
Load testing with Locust | DataHub
There are two ways to run locust. One is through the web interface, and the other is on the command line. To run through the web interface, you can run the following ... For instance, to run ingest load testing, run the following from root of repo.
GitHub
github.com › locustio › locust
GitHub - locustio/locust: Write scalable load tests in plain Python 🚗💨
4 days ago - Write scalable load tests in plain Python 🚗💨. Contribute to locustio/locust development by creating an account on GitHub.
Starred by 27.7K users
Forked by 3.2K users
Languages Python 81.4% | TypeScript 18.0%
GitHub
github.com › aws-samples › load-test-llm-with-locust
GitHub - aws-samples/load-test-llm-with-locust · GitHub
This allows you to test the system with varying levels of throughput, depending on your specific requirements. locust --headless --users 30 --spawn-rate 30 --run-time 120 --csv ./benchmark_metric/benchmark_u30 ...
Starred by 24 users
Forked by 6 users
Languages Jupyter Notebook 99.6% | Python 0.4%
Microsoft Learn
learn.microsoft.com › en-us › azure › app-testing › load-testing › quickstart-create-run-load-test-with-locust
Quickstart: Create a load test with Locust - Azure Load Testing | Microsoft Learn
The optional inputs can be provided in the load configuration, in the Locust test script, or in the Locust configuration file. For more information, see Configure for high scale loads · Select Review + create. Review all settings, and then select Create to create the load test. You can update the test configuration at any time, for example to upload a different Locust test file, or to modify the load parameters.
Better Stack
betterstack.com › community › guides › testing › locust-explained
Load Testing with Locust: A High-Performance, Scalable Tool for Python | Better Stack Community
February 26, 2025 - The report summarizes total requests, failures, and response times. In this example, all requests succeeded, and average response times remained low. Locust also logs percentile breakdowns to highlight response time distribution. To analyze test results later, use the --csv flag to generate CSV reports:
Microsoft Learn
learn.microsoft.com › en-us › azure › developer › python › get-started-app-chat-app-load-test-locust
Get started load testing Python enterprise chat sample using RAG - Python on Azure | Microsoft Learn
January 29, 2026 - Enter the following values in the Locust website. Select Start Swarm to start the test. Select Charts to watch the test progress. When you're finished with load testing, clean up the resources. The Azure resources created in this article are billed to your Azure subscription.
Linode
linode.com › docs › guides › load-testing-with-locust
How to Load Test Your Applications with Locust | Linode Docs
February 22, 2024 - In the Host field, provide the base URL for your example application (http://192.0.2.17:5000). If you are using your own web application, substitute your URL here. Click the Start Swarm button to begin the load test. Locust takes you to a monitoring interface, where you can see the test results in real-time.
Locust
docs.locust.io
Locust Documentation — Locust 2.43.3 documentation
Auto-generating a locustfile · User class · Tasks · Events · HttpUser class · TaskSets · Examples · How to structure your test code · Configuration · Increasing the request rate · Distributed load generation · Running tests in a debugger · Running in Docker ·
Thegreenreport
thegreenreport.blog › articles › simple-load-testing-for-restful-apis-with-locust › simple-load-testing-for-restful-apis-with-locust.html
The Green Report | Simple Load Testing for RESTful APIs with Locust
March 9, 2025 - Whether we're validating a new microservice or troubleshooting performance issues in an existing application, Locust provides the tools we need without the complexity of traditional load testing platforms. For your convenience, the complete code example from this tutorial can be found on our GitHub page, ready to clone and run.
Locust
locust.cloud › blog › 16-ways-to-improve-your-load-test-scenarios
Locust Cloud | 16 ways to improve your load test scenarios: Ensure the validity of your performance tests, avoid breaking stuff, and grow your tests over time with the right strategy
August 19, 2025 - Go back to running a single user (some load testing tools have a special mode for this with extra logging etc) Test in a debugger. This allows you to examine requests/responses in detail and explore all the available fields of the various objects available to your script. Here’s an example of debugging in Locust using VS Code.
Maddevs
maddevs.io › home
[How to Create and Run First Performance Test With Locust Step-by-Step]
March 13, 2024 - The Host field should be populated with the host address for the tests, we are going to use the same address provided by the command prompt. Also, we have opened the Advanced options dropdown menu and filled Run time with 1m. Now we can be sure our load will last exactly one minute. After pressing the START SWARM button the test will begin. The Locust test is in progress:
TutorialsPoint
tutorialspoint.com › load-testing-using-locust
Load Testing Using LOCUST
Locust is a potent tool in every developer's toolbox for efficient load testing. With this free, open-source Python programme, you can simulate millions of concurrent users and describe user behaviour using Python code. This article will serve as your comprehensive, example-filled guide to ...
Simon Willison
til.simonwillison.net › python › locust
Simple load testing with Locust | Simon Willison’s TILs
October 22, 2022 - You can start a web interface to Locust like this: ... This opens a web server on http://0.0.0.0:8089/ (by default) which offers an interface for starting a new test: You can run this for as long as you like, and it will produce both statistics on the load test and some pleasing charts: