After running a VPS for a while, some sysadmin maybe want to determine the upload/download bandwidth of their VPS. Below is somehow I tried to test the upload/download bandwidth of my VPS. A note is that, you might need to make 02 steps to clarify the exact upload/download bandwidth of your VPS(:from your VPS to your country location, and from your working pc to the specific location of your VPS; or try to download/upload a big file between your working pc to your VPS is also working well)
Issue #1: Test the upload/download bandwidth from your VPS to somewhere location
Method 1.1: Sử dụng script test bandwidth:
~$ wget freevps.us/downloads/bench.sh -O – -o /dev/null | bash
or
~$ wget https://thomas.vanhoutte.be/dl/vpstest.sh -O – -o /dev/null|bash
Method 1.2: using speedtest-cli | https://github.com/sivel/speedtest-cli
Very easy installation:
~$ pip install speedtest-cli
Then run:
~$ speedtest-cli
Advanced options:
You can see a list of speedtest.net servers sorted by distance:
~$ speedtest-cli –list
or search for a specific location. ie: Vietnam…
~$ speedtest-cli –list | grep Vietnam
Then, try with that specific location:
~$ speedtest-cli –server 6106
That’s it.
Issue #2: Test the upload/download bandwidth from your workstation/client pc to specific location of your vps’s currently located
For an example: I am running EC2 from Amazon Web Services with the zone Ohio – so I made a bandwidth upload/download test from my working linux pc (as the same way of Issue #1/1.2) to a specific location Ohio.




