Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Created September 6, 2014 02:43
Show Gist options
  • Save v-thomp4/eac6d89cc889b7512b4c to your computer and use it in GitHub Desktop.
Save v-thomp4/eac6d89cc889b7512b4c to your computer and use it in GitHub Desktop.
BENCHMARK MYSQL SERVER PERFORMANCE WITH SYSBENCH
apt-get install sysbench  
create database dbtest;  
sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=dbtest --mysql-user=[USER] --mysql-password=[PASSWORD] prepare  
sysbench --test=oltp --oltp-table-size=1000000 --oltp-test-mode=complex --oltp-read-only=off --num-threads=6 --max-time=60 --max-requests=0 --mysql-db=dbtest --mysql-user=[USER] --mysql-password=[PASSWORD] run  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment