(1)创建用户benchmarksql/123456789,并开通权限。
(2)./runSQL.sh props.dm sqlTableCreates
(3)./runLoader.sh props.dm numWAREHOUSES 10
(4)disql执行sqlSequenceCreate.sql,在数据库管理工具中执行。
(5)./runBenchmark.sh props.dm
备注:编辑props.dm,
driver=dm.jdbc.driver.DmDriver
conn=jdbc:dm://localhost:5236
user=benchmarksql
password=123456789
warehouses=100
terminals=20
//To run specified transactions per terminal- runMins must equal zero runTxnsPerTerminal=0
//To run for specified minutes- runTxnsPerTerminal must equal zero
runMins=60
//Number of total transactions per minute
limitTxnsPerMin=0
//The following five values must add up to 100
//The default percentages of 45, 43, 4, 4 & 4 match the TPC-C spec
newOrderWeight=45
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4
warehouses 是仓库建立库,增加内容,服务器一般可以建立100个。
Terminals是终端并发数量,服务器一般是建立20个。
Runmins是运行时间,服务器一般设置2小时。
Measured tpmc是测量每分钟tpmc即tpcc每分钟的吞吐量。
按有效tpcc配置期间每分钟处理的平均交易次数测量。
单位是tpmc,每分钟系统处理的新订单个数。