Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Last active November 2, 2017 11:42
Show Gist options
  • Save VirtuBox/329d4356d2e265b6042e54c24ed5d9bf to your computer and use it in GitHub Desktop.
Save VirtuBox/329d4356d2e265b6042e54c24ed5d9bf to your computer and use it in GitHub Desktop.
Linux server benchmark with Sysbench
#!/bin/bash
apt update && apt install sysbench -y &>/dev/null
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench --test=fileio --file-total-size=20G prepare
sysbench --test=fileio --file-total-size=20G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run
sysbench --test=fileio --file-total-size=20G cleanup
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli --share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment