ClickHouse/benchmark/monetdb/benchmark.sh

11 lines
285 B
Bash
Raw Normal View History

2020-08-12 02:56:56 +00:00
#!/bin/bash
grep -v -P '^#' queries.sql | sed -e 's/{table}/hits/' | while read query; do
2020-08-12 03:31:10 +00:00
echo 3 | sudo tee /proc/sys/vm/drop_caches
2020-08-12 02:56:56 +00:00
echo "$query";
for i in {1..3}; do
./send-query "$query" 2>&1 | grep -P '\d+ tuple|clk: |unknown|overflow|error';
done;
done;