[wip] performance comparison test

This commit is contained in:
Alexander Kuzmenkov 2020-01-16 17:29:30 +03:00
parent e409051304
commit f81aa1c9f0
3 changed files with 7 additions and 6 deletions

View File

@ -17,11 +17,11 @@
</any_of>
</stop_conditions>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC</query>
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n FORMAT Null</query>
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n DESC</query>
<query>SELECT toDecimal64(number, 8) AS n FROM numbers(1000000) ORDER BY n DESC</query>
<query>SELECT toDecimal128(number, 10) AS n FROM numbers(1000000) ORDER BY n DESC</query>
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
<query>SELECT toDecimal64(number, 8) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
<query>SELECT toDecimal128(number, 10) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
</test>

View File

@ -16,7 +16,7 @@ echo Reference SHA is $ref_sha
# Set python output encoding so that we can print queries with Russian letters.
export PYTHONIOENCODING=utf-8
../compare.sh 0 $ref_sha $PR_TO_TEST $SHA_TO_TEST > compare.log 2>&1
../compare.sh 0 $ref_sha $PR_TO_TEST $SHA_TO_TEST > compare.log 2>&1 ||:
7z a /output/output.7z *.log *.tsv
cp compare.log /output

View File

@ -1,5 +1,6 @@
#!/usr/bin/python3
import sys
import itertools
import clickhouse_driver
import xml.etree.ElementTree as et