In this post we are going to benchmark the cheapest VPS offering from Digital Ocean. As I am in Canada, I chose the Toronto Datacenter for the benchmarks. For all benchmarks, a vanilla Ubuntu 16.04 image was chosen
To truly get an idea of what a VPS offers in terms of performance, several different benchmarks should be ran against the hardware/network to see what it can do. I settled on three fairly standard scripts.
Let’s get started with the basic network connectivity test that is speedtest-cli. Before we can kick off running the benchmark, there are a few dependanices that need to be installed on the VPS. Here are the commands needed to get things ready to run the speedtest-cli benchmark
apt-get install python-pip pip install speedtest-cli
There is a good chance that the server is going to throw a warning that states
You are using pip version 8.1.1, however version 19.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
So, next step is to upgrade pip, as we were told!
> pip install --upgrade pip
From there, we want to drop into a temporary directory from where we can kick off the benchmarking.
> cd /tmp
Now, let’s grab the bits of code we need in order to run the speedtest-cli benchmark tool
> wget https://github.com/sivel/speedtest-cli/archive/master.zip
Great! Now let’s unzip that file and get to work
> unzip master.zip
As this is a vanilla install of Ubunty 16.04, the unzip package does not exist, so yet another warning/error is thrown.
The program ‘unzip’ is currently not installed. You can install it by typing:
apt install unzip
Easy enough to get around that issue, as it literally tells us exactly what to do. Once we have unzipped the package, we need to change directories into the new speedtest-cli-master directory that was created by the unzip process.
> cd speedtest-cli-master/
Once you are in the speedtest directory, it is simply a matter of kicking off the speedtest script. As I wanted the fancy visuals for this blog post, I executed the command with the --share parameter
> speedtest-cli --share If you do not wish to get the graphics, and are happy with seeing the results of the benchmark at the CLI, then simply run
Now, onto the results of the speedtest-cli benchmark. Holy moly, what a network. It makes me wonder if Digital Ocean are in the same datacenter, or even the same rack as the speed test servers/devices.
Pass 1 through Speedtest-cli
Excellent results, so onto the second pass.
I have to wonder why it is only getting 3.5 stars?