Skip to content

Performance Testing cloud databases using Hammer DB #230

Answered by sm-shaw
aaciii asked this question in Q&A
Discussion options

You must be logged in to vote

So yes there is a built-in rate limiter in the TPROC-C workload which is called keying and thinking time. When this is enabled keying time is a fixed value and thinking time a random period of time up to the value called. The defaults are what is based in the TPC-C specification so for example new order has a keying time of 18 seconds and thinking 12 seconds. You can of course modify the values in the script to limit the rate of transactions however you wish.

if { $KEYANDTHINK } { keytime 18 }
neword $mysql_handler $w_id $w_id_input $prepare $RAISEERROR
if { $KEYANDTHINK } { thinktime 12 }
} elseif {$choice <= 20} {
if { $KEYANDTHINK } { keytime 3 }
payment $mysql_handler $w_id $w_id_inpu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sm-shaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants