I'm using the sysbench(1.1.0) to test the performance of MySQL, and I want to test the scene that read:write is 95%:5%. Are there any parameters to change the read/write ratio?
How to change the read/write ratio of sysbench oltp_read_write script
1.8k views Asked by Guoqing Ma At
1
You can have a look at the oltp_read_write script:
This script define the query in a transaction, and the options are below(sysbench oltp_read_write.lua help):
So, the default read/write ratio is 10+4/1+1+2+2, and you can change the read/write ratio just by changing the option number. For example:
Then the read/write ratio is 100+4/1+1+2+2.