Not capturing response time

Issue #237 resolved
Former user created an issue

Created a script with usual API requests along with websockets open connection and single read sampler. Added aggregate report, summary report listeners and not seeing response time for single read sampler alone.

How to calculate response time for websocket Read?

Comments (4)

  1. Peter Doornbosch repo owner

    I think you mean that a response time of 1 millisecond is unrealistic? This is probably due to you reading buffered messages.

    Think a while how you would want to measure response time for something that is not a response. You can only measure a response time when the response is a eh, well, response to a request.

    Image a server that sends a message every 5 seconds. How would you define “response time”? When would you start the measurement of the response time? The moment the message leaves the server? We cannot measure that. For messages that are not send in response to some trigger (a request), there is no such thing as “response time”.

  2. Sundar R

    Thanks for replying. We are opening websockets connection and waiting for particular response using text frame filter and single read and closing websockets once we received required response. Is there any way we can calculate time taken for all these websockets operation together during a load test? I added transaction controller and included these samplers under it. Is that good? suggest if any better way if available.

  3. Log in to comment