Skip to content

Instantly share code, notes, and snippets.

@orklann
Created April 30, 2017 05:55
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save orklann/70796545a26be65a7cfba14c4fe7459e to your computer and use it in GitHub Desktop.
Save orklann/70796545a26be65a7cfba14c4fe7459e to your computer and use it in GitHub Desktop.
Test VPS speed with Speedtest

Download speedtest script

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

Run default test

Python speedtest.py

List specify test servers

Python speedtest.py --list | grep Beijing

Sample output

12165) Indegene (Beijing, China) [1784.74 km]
 5505) Beijing Broadband Network (Beijing, China) [1784.74 km]
 6302) Beijing Fiber City (Beijing, China) [1784.74 km]
 5145) Beijing Unicom (Beijing, China) [1784.74 km]
12065) Capital Online Data Service (Beijing, China) [1784.74 km]
 4713) China Mobile Group Beijing Co.Ltd (Beijing, China) [1784.74 km]
 4751) Beijing Telecom (Beijing, China) [1784.74 km]

Test speed with a Beijing server (#4751)

Python speedtest.py --server=4751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment