Updated perftests.

This commit is contained in:
Nikolai Kochetov 2020-06-17 13:00:28 +03:00
parent 61cf6fe711
commit 091995f1db
3 changed files with 46 additions and 12 deletions

View File

@ -7,15 +7,9 @@
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 300</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 1500</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 2000</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 5000</query>
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 10000</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 FORMAT Null</query>
<query>SELECT toDecimal64(number, 8) AS n FROM numbers(1000000) ORDER BY n DESC LIMIT 5000</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>

View File

@ -0,0 +1,30 @@
<test>
<tags>
<tag>sorting</tag>
<tag>comparison</tag>
</tags>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 10 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 100 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 1500 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 3000 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 5000 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 10000 FORMAT Null</query>
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 65535 settings max_block_size = 65536 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 10 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 100 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 1500 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 3000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 5000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 10000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(100000000) ORDER BY n LIMIT 65535 settings max_block_size = 65536 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n, n + 1, n + 2 LIMIT 10 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n, n + 1, n + 2 LIMIT 100 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n, n + 1, n + 2 LIMIT 1500 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n, n + 1, n + 2 LIMIT 3000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(100000000) ORDER BY n, n + 1, n + 2 LIMIT 5000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(100000000) ORDER BY n, n + 1, n + 2 LIMIT 10000 FORMAT Null</query>
<query>SELECT intHash64(number) AS n FROM numbers_mt(50000000) ORDER BY n, n + 1, n + 2 LIMIT 65535 settings max_block_size = 65536 FORMAT Null</query>
</test>

View File

@ -31,12 +31,22 @@
</substitution>
</substitutions>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 300]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 1500]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 2000]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 5000]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10000, 10000]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 300 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 1500 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 2000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 5000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1} LIMIT 65535 format Null settings max_block_size = 65536]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 10 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 300 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 1500 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 2000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 5000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 10000 format Null]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 65535 format Null settings max_block_size = 65536]]></query>
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1} LIMIT 9000000, 10]]></query>
<query><![CDATA[SELECT {str1}, {str2} FROM hits_100m_single ORDER BY {str1}, {str2} LIMIT 10]]></query>