Gatling: Understanding rampUsersPerSec(minTPS) to maxTPS during seconds

后端 未结 1 981
眼角桃花
眼角桃花 2021-01-18 03:30

I am checking a scala code for gatling where they inject transactions for the period of 20 seconds.

/*TPS = Transaction Per Second */   
  val minTps = Integ         


        
相关标签:
1条回答
  • 2021-01-18 03:53

    rampUsersPerSec is an open workload model injection where you specify the rate at which users start the scenario. The gatling documentation says that this injection profile

    Injects users from starting rate to target rate, defined in users per second, during a given duration. Users will be injected at regular intervals

    So while I'm not sure that the example you provide is precisely correct in that gatling is using a second as the 'regular interval' (it might be a smoother model), you are more or less correct. You specify a starting rate and a final rate, and gatling works out all the intermediate injection rates for your duration.

    Note that this says nothing about the number of concurrent users your simulation will generate - that is a function of the arrival rate (which you control) and the execution time (which you do not)

    0 讨论(0)
提交回复
热议问题