Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2013 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5951078 to your computer and use it in GitHub Desktop.
Save anonymous/5951078 to your computer and use it in GitHub Desktop.
General sysbench run
#!/usr/bin/env bash
dir=$(mktemp -d /tmp/sysbench.XXXX)
cd $dir
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench --num-threads=64 --test=threads --thread-yields=100 --thread-locks=2 run
sysbench --num-threads=16 --test=mutex run
sysbench --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw prepare
sysbench --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw run
sysbench --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