Skip to content

Instantly share code, notes, and snippets.

@dorokhin
Created August 6, 2020 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorokhin/4575c63f0f4258e88a98d89418d96c6e to your computer and use it in GitHub Desktop.
Save dorokhin/4575c63f0f4258e88a98d89418d96c6e to your computer and use it in GitHub Desktop.
speedtest python
from timeit import default_timer as timer
import requests as req
start = timer()
req.get(r'https://speedtest.selectel.ru/10MB')
print('Download speed [mbits/s]:', round(80 / (timer() - start)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment