简体   繁体   中英

Gatling Scenario Response time

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM