# get requestsPerSec as integer value

**URL:** <https://community.gatling.io/t/get-requestspersec-as-integer-value/517>\
**Category:** Gatling (Open-Source)\
**Created:** [July 30, 2013, 11:11pm UTC](https://community.gatling.io/t/get-requestspersec-as-integer-value/517 "2013-07-30T23:11:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satyagraha](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Satyagraha](https://community.gatling.io/u/Satyagraha)\
**Post date:** [July 30, 2013, 11:11pm UTC](https://community.gatling.io/t/get-requestspersec-as-integer-value/517/1 "2013-07-30T23:11:15Z")

</div>

How can I get the above value in the main body of the program after the simulation, i.e. I want to write something vaguely like:

> val rps: Int = global.stats.requestsPerSec.???

Ideas welcome 🙂

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [July 31, 2013, 5:35am UTC](https://community.gatling.io/t/get-requestspersec-as-integer-value/517/2 "2013-07-31T05:35:08Z")

</div>

Either parse the global\_stats.json file that’s generated with the reports (look into the js directory), or wrap/fork Gatling’s main class.

Cheers,

Stéphane
