Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internet speed test-for future learn #4

Open
JesseZhuang opened this issue Aug 9, 2016 · 2 comments
Open

internet speed test-for future learn #4

JesseZhuang opened this issue Aug 9, 2016 · 2 comments
Assignees

Comments

@JesseZhuang
Copy link
Member

JesseZhuang commented Aug 9, 2016

I believe many of you might have used speedtest.net. [Matt Martz] @sivel has written a python tool to test the speed with CLI. This might be a good studying object when we get to the internet part/module.

Sample output, not bad at all:

$ ./speedtest-cli --bytes
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from XFINITY (76.121.236.203)...
Selecting best server based on latency...
b'Hosted by Comcast (Seattle, WA) [21.09 km]: 25.079 ms'
Testing download speed........................................
Download: 7.29 Mbyte/s
Testing upload speed..................................................
Upload: 0.56 Mbyte/s

Python file is here and the original repo is here.

@ywang0701
Copy link
Contributor

The code runs on my PC without any issue. Here are the execution steps:
0. Test env: window 10, Python2.7

  1. git clone
  2. git checkout jesse
  3. cd to Python2\internet
  4. python speedtest-cli The test results are displayed below

image

@JesseZhuang
Copy link
Member Author

The way you are running it is interesting. It's supposed to be
speedtest-cli [options]
so it is interesting that your way works too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants