ClickHouse/benchmark/cratedb/run.sh
2022-07-04 13:37:42 +02:00

14 lines
277 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
psql -U crate -h localhost --no-password -t -c '\timing' -c "$query" | grep 'Time'
done;
done;