未验证 提交 0e8822ad 编写于 作者: Y Yang Zhao 提交者: GitHub

[TD-11053]<feature>taosbenchmark prompt estimated memory usage (#9896)

* update test cases

* add test case for benchmark sub

* [TD-11053]<feature> taosbenchmark prompt estimated memory usage
上级 8306994b
Subproject commit 8c11dcf6856bca0860e7e9999f57274864218f4f
Subproject commit 70a0dc32194b4e00a515773007238ae255758b32
{
"filetype": "subscribe",
"cfgdir": "/etc/taos",
"host": "127.0.0.1",
"port": 6030,
"user": "root",
"password": "taosdata",
"databases": "db",
"confirm_parameter_prompt": "no",
"super_table_query": {
"stblname": "stb",
"threads": 1,
"mode": "sync",
"interval": 1000,
"restart": "yes",
"keepProgress": "yes",
"endAfterConsume": 1,
"sqls": [
{
"sql": "select * from xxxx;"
}
]
}
}
\ No newline at end of file
......@@ -38,9 +38,11 @@ class TDTestCase:
tdSql.query("select count(tbname) from db.stb2")
tdSql.checkData(0, 0, 8)
tdSql.query("select count(*) from db.stb1")
tdSql.checkData(0, 0, 160)
result = tdSql.getData(0, 0)
assert result <= 160, "result is %s > expect: 160" % result
tdSql.query("select count(*) from db.stb2")
tdSql.checkData(0, 0, 160)
result = tdSql.getData(0, 0)
assert result <= 160, "result is %s > expect: 160" % result
def stop(self):
tdSql.close()
......
......@@ -38,8 +38,12 @@ class TDTestCase:
tdSql.execute("insert into stb_2 using stb tags (2) values (now, 2)")
cmd = "taosBenchmark -f ./5-taos-tools/taosbenchmark/json/specified_subscribe.json -g"
tdLog.info("%s" % cmd)
os.system("%s" % cmd)
tdSql.execute("reset query cache")
assert os.system("%s" % cmd) == 0
cmd = "taosBenchmark -f ./5-taos-tools/taosbenchmark/json/super_subscribe.json -g"
tdLog.info("%s" % cmd)
assert os.system("%s" % cmd) == 0
def stop(self):
tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册