Y
Y
yarovikov2021-09-22 18:18:47
Web development
yarovikov, 2021-09-22 18:18:47

How to check redirect speed?

Hi all.

There is a page with a script that takes data from the database and redirects to an external address. You need to measure the speed from opening this page to the start of a redirect to an external link. How can this be done? How to google?)
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-09-22
@weart

you open the page, and through f12 in devtools everything is visible.
Network Tab

A
Alexander Karabanov, 2021-09-23
@karabanov

cURL can measure time https://stackoverflow.com/questions/18215389/how-d...
Example:

~$ curl -w "time_connect %{time_connect}\ntime_redirect %{time_redirect}s\n" \
 -o /dev/null -s http://wordpress.com/

time_connect 0,052253
time_redirect 0,000000s

There is also a httpstat utility :
httpstat -IL http://wordpress.com/

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     3ms    |      25ms      |       140ms       |       53ms       ]
             |                |                   |                  |
    namelookup:3ms            |                   |                  |
                        connect:28ms              |                  |
                                      starttransfer:231ms            |
                                                                 total:284ms

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question