terminals=1 //代表数据库连接数 //To run specified transactions per terminal- runMins must equal zero runTxnsPerTerminal=0 // 设置为0 //To run for specified minutes- runTxnsPerTerminal must equal zero runMins=100 //看看需要测试多长时间,单位为分钟 //Number of total transactions per minute limitTxnsPerMin=0 //设置为0
[postgres@localhost run]$ ./runBenchmark.sh my_postgres.properties The benchmark should run for the number of configured concurrent connections (terminals) and the duration or number of transactions.
The end result of the benchmark will be reported like this:
01:58:09,081 [Thread-1] INFO jTPCC : Term-00, 01:58:09,082 [Thread-1] INFO jTPCC : Term-00, Measured tpmC (NewOrders) = 179.55 01:58:09,082 [Thread-1] INFO jTPCC : Term-00, Measured tpmTOTAL = 329.17 01:58:09,082 [Thread-1] INFO jTPCC : Term-00, Session Start = 2016-05-25 01:58:07 01:58:09,082 [Thread-1] INFO jTPCC : Term-00, Session End = 2016-05-25 01:58:09 01:58:09,082 [Thread-1] INFO jTPCC : Term-00, Transaction Count = 10