Search code examples
testingjmeterperformance-testing

How to calculate total response time in jmeter?


I have send 10 consecutive http requests in jmeter.
I have stored output as csv file.

endTimeMillis   responseTime    latency sentBytes   receivedBytes       responseCode
1357279943.984  1426             1426     347             287           200

1357279944.685  1888             1888     347             287           200
..............
..............

In above output file response time displayed by each request. But i need to calculate total response time for 10 requests.

How to calculate total response time in jmeter?


Solution

  • You need a Transaction Controller. Put elements times of which you want to sum under it. Transaction controller will then appear in all your listeners. Its load and latency times will be sums of those parameters of its nested elements.

    Note that this time by default includes all processing within the controller scope, not just the samples, this can be changed by unchecking "Include duration of timer and pre-post processors in generated sample".