Merge branch 'master' of github.com:taosdata/TDengine into test/chr
This commit is contained in:
commit
269547ebd3
|
@ -3494,6 +3494,11 @@ static bool getMetaFromInsertJsonFile(cJSON* root) {
|
|||
__func__, __LINE__);
|
||||
goto PARSE_OVER;
|
||||
} else if (numRecPerReq->valueint > MAX_RECORDS_PER_REQ) {
|
||||
printf("NOTICE: number of records per request value %"PRIu64" > %d\n\n",
|
||||
numRecPerReq->valueint, MAX_RECORDS_PER_REQ);
|
||||
printf(" number of records per request value will be set to %d\n\n",
|
||||
MAX_RECORDS_PER_REQ);
|
||||
prompt();
|
||||
numRecPerReq->valueint = MAX_RECORDS_PER_REQ;
|
||||
}
|
||||
g_args.num_of_RPR = numRecPerReq->valueint;
|
||||
|
@ -3979,10 +3984,7 @@ static bool getMetaFromInsertJsonFile(cJSON* root) {
|
|||
i, j, g_Dbs.db[i].superTbls[j].interlaceRows, g_args.num_of_RPR);
|
||||
printf(" interlace rows value will be set to num_of_records_per_req %"PRIu64"\n\n",
|
||||
g_args.num_of_RPR);
|
||||
if (!g_args.answer_yes) {
|
||||
printf(" press Enter key to continue or Ctrl-C to stop.");
|
||||
(void)getchar();
|
||||
}
|
||||
prompt();
|
||||
g_Dbs.db[i].superTbls[j].interlaceRows = g_args.num_of_RPR;
|
||||
}
|
||||
} else if (!interlaceRows) {
|
||||
|
|
|
@ -74,7 +74,7 @@ function runQueryPerfTest {
|
|||
|
||||
python3 tools/taosdemoPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
||||
|
||||
python3 perfbenchmark/joinPerformance.py | tee -a $PERFORMANCE_TEST_REPORT
|
||||
#python3 perfbenchmark/joinPerformance.py | tee -a $PERFORMANCE_TEST_REPORT
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ class taosdemoPerformace:
|
|||
return output
|
||||
|
||||
def insertData(self):
|
||||
os.system("taosdemo -f %s > taosdemoperf.txt" % self.generateJson())
|
||||
os.system("taosdemo -f %s > taosdemoperf.txt 2>&1" % self.generateJson())
|
||||
self.createTableTime = self.getCMDOutput("grep 'Spent' taosdemoperf.txt | awk 'NR==1{print $2}'")
|
||||
self.insertRecordsTime = self.getCMDOutput("grep 'Spent' taosdemoperf.txt | awk 'NR==2{print $2}'")
|
||||
self.recordsPerSecond = self.getCMDOutput("grep 'Spent' taosdemoperf.txt | awk 'NR==2{print $16}'")
|
||||
|
|
Loading…
Reference in New Issue