How to measure the speed of your VPS

Ever wondered how some of the geeks are able to produce a speed test of their VPS?  The following tutorial shows how you can set up your VPS to do the test.  Note that this tutorial uses CentOS Linux distribution.

First of all, it’s a complete misunderstanding that the VPS speed is independent of your Internet speed.  A very big component of the speed is how well your Internet Service Provider (ISP) deals with the location of the VPS.  In other words, how many packages it takes per megabyte/second for the ISP to send your information to the VPS and return.  There are other important components too of the speed, including RAM and speed of the VPS.  Also latency of the IP which will be indicated by a ping count in the speed test.  Those who look for a VPS will do well by asking the host for a test IP first so they can check how fast their ISP deals with the VPS.  Once you have the test IP all you do is to go into the Command Prompt of your computer (type cmd in your start box), then cd .. to get to the c: command prompt.  Then simply ping the IP.

To test the speed of your VPS you need to SSH into your VPS, load python first and then the speed script.  Note the tutorial uses  CentOS:

yum install python

wget -O speedtest-cli

chmod +x speedtest-cli

To get the image file so you can proudly share it with others the following command is needed:

./speedtest-cli --share

And this is what the shared results look like.

The above ping count refers to the latency of the IP – the higher the ping, the more the dragging effect by your ISP on the IP. Ideal is below 5. Download speeds are almost always high – it’s the upload speed that matters a lot.  In the image above the speed is way above average. Super fast.  You don’t have to expect speed like that.  For a speed of approx 300 Mbps and even below 100 Mbps upload it’s still very fast.  And as previously mentioned, the RAM and space on your VPS will also make a difference in how fast you can work with your VPS.