ClickHouse/benchmark/citus/run.sh

14 lines
292 B
Bash
Raw Normal View History

2022-06-26 21:04:19 +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-27 00:53:55 +00:00
psql -U postgres -h localhost -d postgres --no-password -t -c '\timing' -c "$query" | grep 'Time'
2022-06-26 21:04:19 +00:00
done;
done;