ClickHouse/benchmark/compatible/heavyai/run.sh
2022-06-26 09:30:59 +02:00

14 lines
293 B
Bash
Executable File

#!/bin/bash
TRIES=3
cat queries.sql | while read query; do
sync
echo 3 | sudo tee /proc/sys/vm/drop_caches
echo "$query";
for i in $(seq 1 $TRIES); do
/opt/heavyai/bin/heavysql -t -p HyperInteractive <<< "${query}" | grep 'Total time' || echo 'null'
done;
done;