Removing Warmup times from test

I try to measure our responsetimes and started simple with one endpoint.
The request is targetting an amazon Application load blancer.

Thereby I noticed that the first request in a scenario has a delay. The delay is allways there, regardless what I try.

I have read the documentation that such short living virtual Users are not ideal, but that shareConnections should mitigate this. And that warmUp (either in code as below or in the conf file) should also hide this delay from the results.

I test with gatling 3.5.1 and have tested this on Mac Big Sur, Windows 10 and Ubuntu subsystem on Windows 10.

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

class ReproducerRunner extends Simulation {

var httpProtocol = http.baseUrl(“”)
httpProtocol.warmUp(“”) // Changes nothing?
httpProtocol.shareConnections // Changes nothing?

object Warmup {
val warmup = exec(
http(“Warmup request to static response”)

val warmup2 = exec(
http(“Warmup request to static response 2”)

scenario(“Still warmup time”)
constantUsersPerSec(10) during (10 seconds)

Featured in FrontLine.