[TD-4263]<test>: update performance test script
This commit is contained in:
parent
dbf565c9e6
commit
9ef6b68030
|
@ -64,18 +64,25 @@ function runQueryPerfTest {
|
||||||
[ -f $PERFORMANCE_TEST_REPORT ] && rm $PERFORMANCE_TEST_REPORT
|
[ -f $PERFORMANCE_TEST_REPORT ] && rm $PERFORMANCE_TEST_REPORT
|
||||||
nohup $WORK_DIR/TDengine/debug/build/bin/taosd -c /etc/taosperf/ > /dev/null 2>&1 &
|
nohup $WORK_DIR/TDengine/debug/build/bin/taosd -c /etc/taosperf/ > /dev/null 2>&1 &
|
||||||
echoInfo "Wait TDengine to start"
|
echoInfo "Wait TDengine to start"
|
||||||
sleep 300
|
sleep 60
|
||||||
echoInfo "Run Performance Test"
|
echoInfo "Run Performance Test"
|
||||||
cd $WORK_DIR/TDengine/tests/pytest
|
cd $WORK_DIR/TDengine/tests/pytest
|
||||||
|
|
||||||
python3 query/queryPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
python3 query/queryPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
||||||
|
|
||||||
|
mkdir -p /var/lib/perf/
|
||||||
|
mkdir -p /var/log/perf/
|
||||||
|
rm -rf /var/lib/perf/*
|
||||||
|
rm -rf /var/log/perf/*
|
||||||
|
nohup $WORK_DIR/TDengine/debug/build/bin/taosd -c /etc/perf/ > /dev/null 2>&1 &
|
||||||
|
echoInfo "Wait TDengine to start"
|
||||||
|
sleep 10
|
||||||
|
echoInfo "Run Performance Test"
|
||||||
|
cd $WORK_DIR/TDengine/tests/pytest
|
||||||
|
|
||||||
python3 insert/insertFromCSVPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
python3 insert/insertFromCSVPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
||||||
|
|
||||||
python3 tools/taosdemoPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
python3 tools/taosdemoPerformance.py -c $LOCAL_COMMIT | tee -a $PERFORMANCE_TEST_REPORT
|
||||||
|
|
||||||
#python3 perfbenchmark/joinPerformance.py | tee -a $PERFORMANCE_TEST_REPORT
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class insertFromCSVPerformace:
|
||||||
self.host = "127.0.0.1"
|
self.host = "127.0.0.1"
|
||||||
self.user = "root"
|
self.user = "root"
|
||||||
self.password = "taosdata"
|
self.password = "taosdata"
|
||||||
self.config = "/etc/taosperf"
|
self.config = "/etc/perf"
|
||||||
self.conn = taos.connect(
|
self.conn = taos.connect(
|
||||||
self.host,
|
self.host,
|
||||||
self.user,
|
self.user,
|
||||||
|
|
|
@ -24,7 +24,7 @@ class taosdemoPerformace:
|
||||||
self.host = "127.0.0.1"
|
self.host = "127.0.0.1"
|
||||||
self.user = "root"
|
self.user = "root"
|
||||||
self.password = "taosdata"
|
self.password = "taosdata"
|
||||||
self.config = "/etc/taosperf"
|
self.config = "/etc/perf"
|
||||||
self.conn = taos.connect(
|
self.conn = taos.connect(
|
||||||
self.host,
|
self.host,
|
||||||
self.user,
|
self.user,
|
||||||
|
@ -77,7 +77,7 @@ class taosdemoPerformace:
|
||||||
|
|
||||||
insert_data = {
|
insert_data = {
|
||||||
"filetype": "insert",
|
"filetype": "insert",
|
||||||
"cfgdir": "/etc/taosperf",
|
"cfgdir": "/etc/perf",
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"port": 6030,
|
"port": 6030,
|
||||||
"user": "root",
|
"user": "root",
|
||||||
|
|
Loading…
Reference in New Issue