Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Created August 20, 2016 01:55
Show Gist options
  • Save VirtuBox/d2b68cfb4d4479506210828931733338 to your computer and use it in GitHub Desktop.
Save VirtuBox/d2b68cfb4d4479506210828931733338 to your computer and use it in GitHub Desktop.
Benchmark your VPS

with vps bench

bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench)

with speedtest

apt-get install -y python git
git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py install
cd speedtest-cli
python ./speedtest_cli.py

with sysbench

apt-get install sysbench

sysbench --test=cpu --cpu-max-prime=20000 run

sysbench --test=fileio --file-total-size=30G prepare

sysbench --test=fileio --file-total-size=30G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run

sysbench --test=fileio --file-total-size=30G cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment