Running scenario during X along with rampUsers


How is running the scenario during X times works along with a ramp up, as in the example below? How is the time in ‘during’ used?

When I ran it, total run time was 820 seconds, out of which for 380 seconds there were constant 1500 users.
So about 300 seconds there as a ramp up of 100 each 10 with separation of 5 seconds? And the same ramp down? (the final graph shows this)

Does it seem like a correct scenario to achieve X users with a gradual increase?

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import io.gatling.http.config.HttpProtocolBuilder

class CMWell extends Simulation {

val httpConf = http
.baseURL(“http://server1”) // Here is the root for all relative URLs

val scn = scenario(“Capacity”).during(600 seconds){

setUp(scn.inject(splitUsers(1500) into(rampUsers(100) over(10 seconds)) separatedBy(5 seconds)).protocols(httpConf))


A during loop has nothing to do with the injection profile.

A during loop starts counting for every virtual user when it enters the loop.