I need to find the load time of a website that I am currently building. I have hosted the site locally. How can I find its load time using python or javascript? I tried the following code, but I think it is for response time.
from time import time
from urllib.request import urlopen
stream = urlopen('https://01c92730.ngrok.io/index.html')
cream = urlopen('https://01c92730.ngrok.io/Webpage.html')
start_time = time()
output = stream.read()
end_time = time()
stream.close()
print(round(end_time-start_time, 3))
start = time()
output = cream.read()
end = time()
cream.close()
print(round(end-start, 3))`