Answer the question
In order to leave comments, you need to log in
How to measure the speed of a get request?
It immediately comes to mind to write down the time before the request, and after it, and find the difference, but I think this is not very beautiful.
Tell me, is it possible for http to have special features for this?
Answer the question
In order to leave comments, you need to log in
Why ugly, quite a normal solution. If you need to collect statistics, then the solution would be better to look for middlewares that already know how to measure the execution time of requests and save it somewhere in the log format or in some other way, so that it is convenient to analyze.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question