ClickHouse/benchmark/sqlite/run.sh

14 lines
227 B
Bash
Raw Normal View History

2022-07-03 04:33:25 +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
time sqlite3 mydb <<< "${query}"
done;
done;