Created
August 6, 2020 13:05
-
-
Save dorokhin/4575c63f0f4258e88a98d89418d96c6e to your computer and use it in GitHub Desktop.
speedtest python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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