0
votes

I am doing load test for an api which average response time is 5 sec

in my script i setup constantUserPerSecond 2 and duration 150 second

.inject(constantUsersPerSec(2) during (150 seconds)),

will it generate 2 request per second ? or less , because of 1 request will take 5 second to complete ?

1
Why not simply run that code and see what happens?Nico Haase
yes, i run it but not getting expected QA for a 150 second. so i just want understand how constantUsersPerSec() method works internally. but could not found any documentation.Sharif
You haven't found github.com/gatling/gatling/blob/master/src/sphinx/general/…? In that repository, you can simply check the source code to see what happensNico Haase
got it. Thanks for sharing. i will check the source code.Sharif

1 Answers

0
votes

constantUsersPerSec(2) will start a new user executing the scenario every .5 seconds or so. For this sort of injection profile gatling doesn't take into consideration how long it takes for a request to complete.