domingo, janeiro 06, 2019
How to test VPS Speed and Performance? Install and Run UnixBench & sysbench – HowsVPS
How to test VPS Speed and Performance? Install and Run UnixBench & sysbench – HowsVPS




How to test VPS Speed and Performance? Install and Run UnixBench & sysbench
There is more than one way to check the performance available on a VPS Server.If you are looking for great performance and ease of use, then you should look into Following :
- Linode VPS Review-How to Create a Linode Server
- host1plus VPS Review-Affordable & Quick VPS Hosting RAM 256 MB Only $2.00/mo
- BandwagonHost VPS Review -Cheap SSD VPS 256 MB RAM Only $2.99/m
How To Benchmark VPS System (CPU, File IO) With sysbench
Installing sysbench
For CentOS:
1 2 | apt-get install sysbench man sysbench |
For Debian/Ubuntu:
1 2 3 4 5 6 7 | wget http://nchc.dl.sourceforge.net/project/sysbench/sysbench/0.4.12/sysbench-0.4.12.tar.gz tar zxvf sysbench-0.4.12.tar.gz cd sysbench-0.4.12/ mkdir /usr/sysbench/ apt-get install automake apt-get install libtool ./autogen.sh |
How to Test VPS CPU Performance
The faster your CPU performs, the faster your server can process tasks. Just use the command(Note that this CPU measure is by no means comprehensive. but it does give an overall look at how CPU-bound workloads will be handled by the different VPSes.)
1 | sysbench --test=cpu --cpu-max-prime=20000 run |
File IO Benchmark
IOPS (input/output operations per second) are a metric that are commonly used to measure disk I/O performance.To measure file IO performance, we first need to create a test file that is much bigger than your RAM – 150GB is a good value:
1 | sysbench --test=fileio --file-total-size=150G prepare |
Afterwards, we can run the benchmark:
1 | sysbench --test=fileio --file-total-size=150G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run |
How to Test VPS Disk I/O Performance
Disk performance is important.High disk IO is important to ensure your server works efficiently and your web applications do not slow down.This script is the one I see a lot in many forums and blogs.Just do the following
1 | dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync |
HDPARM
hdparm can be used to get/set the disk information, if you don’t have it, you can install by using:
1 2 | sudo apt-get install hdparm #yum install hdparm |
You need to specify which hard disk partition, the first HDD is usually /dev/sda1, the second is /dev/sda2 or /dev/sdb1 etc.
1 | hdparm -tT /dev/sda1 |
There is a big difference regarding to the disk performance between HDD and SD Card. Remember to remove the file by rm -f test after you finish the test.

Test VPS upload/download speed
We can use Matt Martz python script speedtest-cli to Test VPS upload/download speed.just do the following :
1 2 3 | wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli python speedtest-cli --share |
Or
1 | wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash |
heres an example ran from a Linode VPS

Install and Run UnixBench
UnixBench is a popular server benchmarking tool,its results depend not only on your hardware, but on your operating system, libraries, and even compiler.This tutorial will cover how to install and run UnixBench on a VPS.

To install and run UnixBench, follow the instructions related to the Linux distribution you are using :
For CentOS:
1 2 3 4 5 6 7 8 | yum install gcc gcc-c++ make libXext-devel yum groupinstall "Development Tools" yum install libX11-devel mesa-libGL-devel perl-Time-HiRes wget -c http://byte-unixbench.googlecode.com/files/unixbench-5.1.3.tgz tar xvzf unixbench-5.1.3.tgz cd unixbench-5.1.3 make ./Run |
For Debian/Ubuntu:
1 2 3 4 5 | apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.3.tgz tar xvf unixbench-5.1.3.tgz cd unixbench-5.1.3 ./Run |

vpsbench: Benchmarks VPS perfomance
GitHub - mgutz/vpsbench: Benchmarks VPS perfomance
vpsbench
Benchmark VPS performance. See user submissions
A script to run simple and comprehensive benchmarks on CPU and IO performance.
Tested on:
- Debian 6
- Debian 7
- Debian 8
- Ubuntu 10.04 LTS
- Ubuntu 12.04 LTS
- Ubuntu 14.04 LTS
Example
$ bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench)
CPU model: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Number of cores: 4
CPU frequency: 3417.879 MHz
Total amount of RAM: 3265 MB
Total amount of swap: 1021 MB
System uptime: 8:41,
I/O speed: 427 MB/s
Bzip 25MB: 4.66s
Download 100MB file: 1.64MB/s
Assinar:
Postagens (Atom)