Last active
November 2, 2017 11:42
-
-
Save VirtuBox/329d4356d2e265b6042e54c24ed5d9bf to your computer and use it in GitHub Desktop.
Linux server benchmark with Sysbench
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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