performance comparison

This commit is contained in:
Alexander Kuzmenkov 2020-02-18 20:30:10 +03:00
parent 6de245aee2
commit 8017220004
2 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,10 @@ function run_tests
grep ^client-time "$test_name-raw.tsv" | cut -f2- > "$test_name-client-time.tsv"
# this may be slow, run it in background
right/clickhouse local --file "$test_name-queries.tsv" --structure 'query text, run int, version UInt32, time float' --query "$(cat $script_dir/eqmed.sql)" > "$test_name-report.tsv" &
# Check that both servers are alive, to fail faster if they die.
left/clickhouse client --port 9001 --query "select 1 format Null"
right/clickhouse client --port 9002 --query "select 1 format Null"
done
unset TIMEFORMAT

View File

@ -57,5 +57,7 @@ set -m
time ../compare.sh 0 $ref_sha $PR_TO_TEST $SHA_TO_TEST 2>&1 | ts "$(printf '%%Y-%%m-%%d %%H:%%M:%%S\t')" | tee compare.log
set +m
dmesg > dmesg.log
7z a /output/output.7z *.log *.tsv *.html *.txt *.rep
cp compare.log /output