#!/usr/bin/env bash #host=39.104.80.229 host=127.0.0.1 days=1 pointIndex=1 pointCount=(1) echo "----test query range days:$days" beginDate="2021-12-28 00:00:00" echo beginDate:beginDate #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S") endDate="2021-12-28 00:01:00" echo endDate:$endDate for pointCount in 1 2 3 5 10 20 30 50 100 do java -cp ./lib/influxdb.jar demo.query.histQuery.QueryMultiPointHistData \ --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \ --beginDate "$beginDate" --endDate "$endDate" \ --showQueryResult 0 2>&1 | tee -a ./log/influxdb/out.log done