Assignment 2: Heartbeat a website for speed from the command line.In the admin subforum sometimes we tweak or educate another admins commands mirroring what is done largely in the user forums when someone comes along with a better way to do something. So we thought why not have a, 'Can you solve it better, Admin challenge thread'? Each week an admin (or user selected) will post a thread with a reproducible issue, the solution to that issue, and the series of commands used to solve the problem. Everyone is welcome to showcase a different manner to accomplish the goal. You can show off and teach us all something or learn something new as we add to our repository of knowledge.
Below is an example of the challenge, it is still open for another way to do the process.
I need to test on average the response time of a website. Eventually I would like to measure roundabout trip times and other data but for now I use:
curl
manpageI use:
Code:
{~}:> $ curl -o /dev/null -s -w 'Total: %{time_total}s\n' https://forums.debian.netTotal: 0.821394s
-s silent. Do not show progress meter or error messages. Makes Curl mute.
-w write-out format
Can you do it better?
@Aki
Statistics: Posted by donald — 2024-05-27 00:52 — Replies 0 — Views 21