N
N
NubasLol2019-05-03 13:43:20
go
NubasLol, 2019-05-03 13:43:20

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

2 answer(s)
D
devalone, 2019-05-03
@devalone

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 question

Ask a Question

731 491 924 answers to any question