0
votes

How to get response time in sec in the aggregate report in JMeter currently its MS

Avg - an Arithmetic mean for all responses (sum of all times / count) Minimal response time (ms) need in Sec Maximum response time (ms) need in Sec

1

1 Answers

0
votes

As of current JMeter version 5.2.1 it is not possible.

As a workaround you can add a JSR223 PostProcessor and divide Connect Time, Latency and Elapsed Time by 1000, this way you will have these metrics in seconds.

Example code:

prev.setConnectTime((prev.getConnectTime() / 1000) as long)
prev.setLatency((prev.getLatency() / 1000) as long)
org.apache.commons.lang3.reflect.FieldUtils.writeField(prev, 'elapsedTime', (prev.getTime() / 1000) as long, true)

Be aware that you will loose precision, i.e. of you had 400 ms response time - you will get it as 0, for 600 ms response time it will be 1 second, etc.

More information: