I’m new to Gatling and have two basic questions down below. Given the following code snippet:
/* 1. pause for 5 seconds.
2. Injects 10 users at once.
3. Injects 10 users with a linear ramp over 5 seconds
4. Injects users at 20 users per second during a 15 second interval.
Users will be injected at regular intervals.
5. Injects users at 20 users per second during a 15 second interval.
Users will be injected at randomized intervals.
6. Injects users from 10 ups to 20 ups, during a 10 second interval.
Users will be injected at regular intervals.
7. Injects users from 10 ups to 20 ups, during a 10 second interval.
Users will be injected at randomized intervals.
8. Injects 1000 users over a smooth approximation during a 20 second interval.
*/
setUp(
scn.inject(
nothingFor(5), // 1
atOnceUsers(10), // 2
rampUsers(10) during (5), // 3
constantUsersPerSec(20) during (15), // 4
constantUsersPerSec(20) during (15) randomized, // 5
rampUsersPerSec(10) to 20 during (10), // 6
rampUsersPerSec(10) to 20 during (10) randomized, // 7
heavisideUsers(1000) during (20) // 8
).protocols(httpConf))
Question #1: Regarding atOnceUsers(10) and rampUsers(10), are they the same 10 users or are they an aggregate of 20 users?
Question #2: Regarding constantUsersPerSec(20), are these users 20 new users or an aggregate of the prior two statements referred to in my prior question?