#!/usr/bin/env bash #host=39.104.80.229 host=127.0.0.1 pointCountArray=(1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 1000000) for(( i=0;i<${#pointCountArray[@]};i++)) do pointNamePrefixArray[i]="prefix$i_" done for(( i=0;i<${#pointCountArray[@]};i++)) do echo "----test insert dataCountPerPoint:${pointCountArray[i]}" java -cp ./lib/tsdb.jar demo.allInsert.InsertHistoricalRandomData \ --host=$host --pointNamePrefix=${pointNamePrefixArray[i]} --pointCount=${pointCountArray[i]} \ --dataCountPerPoint=${pointCountArray[i]} --beginDate="2021-03-01 00:00:00" --period=1000 \ --seed=1 --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log sleep 1 #1 second done