tdLog.debug("spent %.2fs to create %d stable and %d table, create speed is %.2f table/s... [OK]"%(spendTime,threadNumbers,threadNumbers*count,speedCreate))
tdLog.debug("spent %.2fs to create %d stable and %d table, create speed is %.2f table/s... [OK]"%(spendTime,threadNumbers,threadNumbers*count,speedCreate))
tableCounts=threadNumbers*chilCount
stableRows=chilCount*childrowcount
allRows=stableRows*threadNumbers
speedInsert=allRows/spendTime
foriinrange(threadNumbers):
tdSql.execute("use %s"%dbname)
tdSql.query("select count(*) from %s%d"%(stbname,i))
tdSql.checkData(0,0,stableRows)
tdLog.debug("spent %.2fs to insert %d rows into %d stable and %d table, speed is %.2f table/s... [OK]"%(spendTime,allRows,threadNumbers,tableCounts,speedInsert))
tdLog.debug("INSERT TABLE DATA ............ [OK]")
return
...
...
@@ -288,7 +268,10 @@ class TDTestCase:
deftest_case1(self):
tdLog.debug("-----create database and muti-thread create tables test------- ")