mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
11 lines
285 B
Bash
Executable File
11 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
|
|
grep -v -P '^#' queries.sql | sed -e 's/{table}/hits/' | while read query; do
|
|
echo 3 | sudo tee /proc/sys/vm/drop_caches
|
|
|
|
echo "$query";
|
|
for i in {1..3}; do
|
|
./send-query "$query" 2>&1 | grep -P '\d+ tuple|clk: |unknown|overflow|error';
|
|
done;
|
|
done;
|