# Group Cumulated Response Time vs. Duration

**URL:** <https://community.gatling.io/t/group-cumulated-response-time-vs-duration/2089>\
**Category:** Gatling (Open-Source)\
**Created:** [March 5, 2015, 12:33pm UTC](https://community.gatling.io/t/group-cumulated-response-time-vs-duration/2089 "2015-03-05T12:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://community.gatling.io/u/Jamie)\
**Post date:** [March 5, 2015, 12:33pm UTC](https://community.gatling.io/t/group-cumulated-response-time-vs-duration/2089/1 "2015-03-05T12:33:53Z")

</div>

Hi,

I have the following scenario:

.group(“Register”){  
group(“RegisterTransaction”){  
exec(http(“Register”)  
.post("/users/register")  
.body(StringBody("""{ “name”: “Name”, “surname”: “Surname”,  
“about”: “Description”,  
“username”: “UserA”, “password”: “Password”,  
“dob”: “12/12/1996”}""")).asJSON  
.check(jsonPath("$.registerState").is(“Success”))).exitHereIfFailed  
}  
}

The Group Cumulated Response Time is less than the Duration when comparing the graphs. In this case, shouldn’t they show the same response time values?

Thank you

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 5, 2015, 12:37pm UTC](https://community.gatling.io/t/group-cumulated-response-time-vs-duration/2089/2 "2015-03-05T12:37:54Z")

</div>

Do you really think that all the operations that happen before the request is sent (going from the group step to the exec(http), building the request) and after the response is received (decoding the response bytes into chars, parsing into JSON, apply the check, going to the exit step, then back to the group exit) come for free?

---

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://community.gatling.io/u/Jamie)\
**Post date:** [March 5, 2015, 12:42pm UTC](https://community.gatling.io/t/group-cumulated-response-time-vs-duration/2089/3 "2015-03-05T12:42:57Z")

</div>

Yes you are right. I’m sorry. So in order to asses the time taken for the server to handle the request and send Success should I use the duration or the response time then?

Thank you and sorry.
