How to implement decreasing Gatling users during some time without spikes in users arrival?

Viewed 227

I have the ramp down test that decrease the amount of users every time in Gatling. For example, 5 users every 1 minute, from 15 users to 5 users. For the user's injections I use constantConcurrentUsers():

setUp(
   Test.inject(
      (15) to  5 by (-5)
        .map(i => constantConcurrentUsers(i) during 60)
    )

Screenshot with constantConcurrentUsers() But users arrive with some spikes. I want it to be more constant like in atOnceUsers() where we don't have any spikes. Is there another way to do it in Gatling?

1 Answers

But users arrive with some spikes.

This is just a consequence of this chart displaying "active users" metric, not "concurrent users" one. See doc.

Related