mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
16 lines
327 B
Bash
16 lines
327 B
Bash
#!/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
|
|
echo '\timing' > /tmp/query_temp.sql
|
|
echo "$query" >> /tmp/query_temp.sql
|
|
psql -d postgres -t -f /tmp/query_temp.sql | grep 'Time'
|
|
done;
|
|
done;
|