Using FastHttpUser to increase load test capacity
By default, LoadForge uses the HttpUser class which is based on Python requests. This allows a large amount of flexibility with customizing your test, however, for most use cases it's not required.
There is an alternative and significantly faster method (4-5x more requests/second) by using FastHttpUser instead of HttpUser. Below is an example of a test configured to use FastHttpUser.
from locust import task, FastHttpUser class MyUser(FastHttpUser): @task(1) def index(self): response = self.client.get("/")
As you can see primarily you need to import FastHttpUser and then pass it to your test class. You should be able to easily change any existing test to use it.