Comments on How to Test Website Loading Speed in Linux
The website loading speed or response time is very important for any webmaster because it will impact search engine rankings and user experience. In this tutorial, we will show you how to test website loading speed using the curl command in Linux.
4 Comment(s)
Comments
Just for fun, I did test my small website, running Raspberrypi 4 - 4gb, Ubuntu 20.10 server, Nginx, Maria db and Thirtybees. The Raspberrypi have a Samsung T5 USB3 SSD drive:
Lookup Time: 0,004341Connect Time: 0,004652Pre-transfer Time: 0,004681Start-transfer Time: 0,040646Total Time: 0,040689
I was testing from the same network as the Raspberry Pi is located to the test only reflects the performance of the small raspberry, but I'm impressed :-)
Your results tell me you tested it more than once and your curl pulled the data from your cache. Those are not real values. To avoid that, you may want to add ?put_random_text_here at the end of each URL to avoid caching (at least for some servers - doesn't work always, but mostly it should work).E.g. yourdomain(dot)com?agf317
time_namelookup: 0.000993time_connect: 0.002293time_appconnect: 0.000000time_pretransfer: 0.002321time_redirect: 0.000000time_starttransfer: 0.003280
1 vCPU, 1GB RAM, static website with a reverse nginx proxy for about 20 other domains running under a KVM VM.
Maybe using the 'ab' tool would be more useful?