Overview
There are various ways to control the requests per second, iterations, and user load in LoadForge. Naturally, the primary way to control the request rate is with the number of Virtual Users you specify. This guide will focus on additional control beyond that.Standard wait_time
Typical LoadForge scripts include await_time
parameter. Examples of this are below:
wait_time
is designed to simulate a real browser, where users wait a random amount of time between requests due
to them consuming the content on the page.
Zero wait
For the maximum possible request rate (RPS) do not specify a wait time and the script will loop as fast as possible. You should also consider FastHttpUser if doing that, for a significant improvement to the request rate while sacrificing some of the complex test abilities.Constant Rate
Theconstant_total_ips
helper will ensure that the total number of requests per second is constant, regardless of the number of users.
This is useful when you want to ensure a constant load on your server, regardless of the number of users.
This will not work with the wait_time
attribute, as it will override it. Also note, IPS is iterations per second, and
means your full test script.