ClickHouse/benchmark/compatible/heavyai/run.sh

14 lines
293 B
Bash
Raw Normal View History

2022-06-26 05:59:40 +00:00
#!/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
2022-06-26 07:30:59 +00:00
/opt/heavyai/bin/heavysql -t -p HyperInteractive <<< "${query}" | grep 'Total time' || echo 'null'
2022-06-26 05:59:40 +00:00
done;
done;