Once you configured your scenario, the next step is configuring the shape and duration of the load.
There are two different ways to configure the load, Predefined Load and Custom Load. But there are two common elements you will see in both of two. These are the total iteration count and the total test duration. Let's learn these first.
You already know that the Scenario consists of Steps and Steps are executed, respectively. So, no surprise that the iteration count represents the execution count of the Scenario. Some people say run count, others say transaction count, but we prefer iteration count.
It is good to note that iteration count is not the request count. The relation between iteration count and request count depends on the Step count in the Scenario. For example, if the Scenario includes 3 steps and the iteration count is 100, then the total request count will be 300 (100 x 3).
No deeper meaning for the Duration. It represents the total test duration in seconds.
Good to know: You can see the maximum test duration you can supply at the bottom of the Duration label.
The predefined load has been built to decrease your time on configuration. Just type the Iteration count and Duration, then select one of the load types. That's all you need.
Ddosify supports 3 different load types for different use cases.
In linear load, the iteration count is constant per second. For example, if the iteration count is 100 and Duration is 10 seconds, then Ddosify will execute 10 iterations per second.
Unlike the linear load, the iteration count increases every second in this load type.
In real life, the traffic does not come with the same pattern. It would have peak times and silent times. To simulate this kind of load, Ddosify has waved load type.
While Ddosify has built-in load types to make things easier, you may want to create your own load type. With the Custom Load type builder, you can supply how many iterations you want for the specific time periods. You can easily see the shape of the load you created at the Load Preview section located right of the pane.