Response time for each request?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Response time for each request?

Bernhard
Hi,

I would like to get the response time for each request. In the class
grinder-http/src/main/java/net/grinder/plugin/http/HTTPRequest.java, line 1306
of grinder it is logged some information for every request like response size but not respone time

       final String message =
         httpResponse.getOriginalURI() + " -> " + statusCode + " " +
        httpResponse.getReasonLine() + ", " + responseLength + " bytes";

Any other idea how to get response time?

Regards,
Bernhard


Reply | Threaded
Open this post in threaded view
|

Re: Response time for each request?

Gisoo.Gwon
U can get "First byte time" in statistics.

first byte time : The time taken to receive the first response byte in milliseconds. (This includes time to resolve the host name and establish the connection).


example)
request.GET(...)
int t = grinder.statistics.forLastTest.getLong("httpplugin.firstByteTime")
grinder.logger.warn("res time : {}", t);