Skip to content

Instantly share code, notes, and snippets.

@lavoiesl
Forked from anonymous/sysbench.sh
Last active December 19, 2015 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lavoiesl/5951085 to your computer and use it in GitHub Desktop.
Save lavoiesl/5951085 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
dir=$(mktemp -d /tmp/sysbench.XXXX)
cd $dir
sysbench --batch=4 --test=cpu --cpu-max-prime=20000 run
sysbench --batch=4 --num-threads=64 --test=threads --thread-yields=100 --thread-locks=2 run
sysbench --batch=4 --num-threads=16 --test=mutex run
sysbench --batch=4 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw prepare
sysbench --batch=4 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw run
sysbench --batch=4 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw cleanup
cd
rm -R $dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment