I'm using the following code to check the average response time because i noticed it was very slow:
t1 = time.time()
response = requests.get(url, timeout=10, headers=headers)
t2 = time.time()
reqtimes += t2 - t1
reqamount += 1
print("Average response time:" + str(reqtimes/reqamount))
When i print the average response time after connecting to around 1000 different sites it tells me the average response time is 70 seconds. Why? my timeout is set to 10 !