# Measuring throughput

**URL:** https://community.gatling.io/t/measuring-throughput/4872
**Category:** Gatling (Open-Source)
**Created:** [March 15, 2019, 1:26pm UTC](https://community.gatling.io/t/measuring-throughput/4872 "2019-03-15T13:26:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dhaval\_Shah](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@Dhaval\_Shah](https://community.gatling.io/u/Dhaval_Shah)
#### Post date: [March 15, 2019, 1:26pm UTC](https://community.gatling.io/t/measuring-throughput/4872/1 "2019-03-15T13:26:50Z")

</div>

Hi,

I am a newbie to Gatling world and currently using it for performing load testing on set of REST APIs

I am trying to do load testing using below snippet

_setUp(_  
_jsonFetchCardEndpointScenario.inject(_  
_rampUsersPerSec(0) to 100 during(300 seconds),_  
_constantUsersPerSec(100) during(20 minutes),_  
_rampUsersPerSec(100) to 0 during(300 seconds)_

_)_  
_).maxDuration(35 minutes)_  
_.protocols(jsonHttpProtocol)_  
_.assertions(global.successfulRequests.percent.is(100))_

Every time I run above script for the same scenario, count of request and Request per sec is same irrespective of differences in response time readings. What I am looking for is - changes in code that should be done to have count of request and request per second different depending on response time ?

---

<div class="post-metadata">

### Author: ![G\_Madhana\_Mohana\_Red](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@G\_Madhana\_Mohana\_Red](https://community.gatling.io/u/G_Madhana_Mohana_Red)
#### Post date: [March 18, 2019, 8:36am UTC](https://community.gatling.io/t/measuring-throughput/4872/2 "2019-03-18T08:36:29Z")

</div>

Please check in scenario, do you have .forever{ or .repeat{. This condition will controls number of requests irrespective of response time and failures.
