F
F
Fortunato282018-07-22 16:49:17
C++ / C#
Fortunato28, 2018-07-22 16:49:17

How to get server response time?

Is there any adequate way to get server response time per http request?
The only thing that comes to mind is the time difference before sending the request and after receiving the response.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Doc44, 2018-07-23
@Fortunato28

The only thing that comes to mind is the time difference before sending the request and after receiving the response.

well yes. this is normal.
just keep in mind:
that there are still network delays (not always predictable)
there is also a different server response time depending on the load.
that is, according to the mind, you need to measure on a variety of requests and average.
and even take measurements from different points. as Dave
answered nearby - by adding time stamps to the request and response, you can get more complete information.

D
Dave, 2018-07-22
@djay

The only thing that comes to mind is the time difference before sending the request and after receiving the response.

There is another option - to measure the execution time of the script. In fact - sent a request now, the server parsed and answered how long it had been parsing (ala add the processing time key to the response JSON).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question