# What the speed of during, after I use during, my qps(Req/s) become low

**URL:** <https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256>\
**Category:** Gatling (Open-Source)\
**Created:** [August 9, 2014, 7:50am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256 "2014-08-09T07:50:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wei\_song](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@wei\_song](https://community.gatling.io/u/wei_song)\
**Post date:** [August 9, 2014, 7:50am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256/1 "2014-08-09T07:50:33Z")

</div>

Hi， I use the galting like this:

val writeDataScn = scenario(“writeToHBase”)  
.feed(writedata)  
.repeat(1000) {  
exec(HBaseBuilder)  
}

and my user is 5000, the qps can be 6000.  
but, when I change to this:

val writeDataScn = scenario(“writeToHBase”)  
.feed(writedata)  
.during(600 seconds) {  
exec(HBaseBuilder)  
}

and my user is also 5000, the qps(Req/s) just become 1200. What is wrong? Does the during method send request very slowly? I am new in gatling, and I want to know why my qps is falling so hard

---

<div class="post-metadata">

**Author:** ![wei\_song](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@wei\_song](https://community.gatling.io/u/wei_song)\
**Post date:** [August 9, 2014, 8:21am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256/2 "2014-08-09T08:21:53Z")

</div>

The HBaseBuilder is protocal I defined myself

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 10, 2014, 10:12am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256/3 "2014-08-10T10:12:37Z")

</div>

Hi Wei,

What version of Gatling are you using ?  
What does your injection profile looks like ?  
As during does not constrain the number of times your request is executed, it _could_ be that there’s something in your custom protocol, or elsewhere, that slows down the your simulation, one little bit at a time (a memory leak for example).

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![wei\_song](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@wei\_song](https://community.gatling.io/u/wei_song)\
**Post date:** [August 11, 2014, 2:23am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256/4 "2014-08-11T02:23:36Z")

</div>

Thanks Pierre,  
I am using Galting2.3  
And my injection is like this:  
setUp(writeDataScn.inject(ramp(5000 users).over(50 seconds)))

I just want to know if the during does not constrain the number of times my request is executed, then how the gatling know the time to send the second request after the first request finished.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 11, 2014, 8:58am UTC](https://community.gatling.io/t/what-the-speed-of-during-after-i-use-during-my-qps-req-s-become-low/1256/5 "2014-08-11T08:58:58Z")

</div>

Hi Wei,

There have been a lot of fixes since 2.0 M3a, and some of them on _during._  
Could you update to 2.0.0-RC2 ? There is a dedicated migration guide for migration from 2.0.0-M3a to 2.0.0-RC1/RC2 : [http://gatling.io/docs/2.0.0-RC2/project/migration\_guides/2.0.0-M3a-to-2.0.0-RC2.html#m3a-to-2-0-rc2](http://gatling.io/docs/2.0.0-RC2/project/migration_guides/2.0.0-M3a-to-2.0.0-RC2.html#m3a-to-2-0-rc2)

And to answer your question, during does not constrain the number of times the request is executed, meaning a lot of users are hitting your HBase at the same time.  
If there is a process that happens to answer right away but does some background work after, this would mean that you would hit your HBase continuously while it has some work to do, which would accumulate over the 600 seconds of your during loop.
