feat: Add grace hash join perf tests

This commit is contained in:
Sergey Skvortsov 2022-06-23 08:44:26 +03:00
parent bb0e6fd835
commit 202a2fd709

View File

@ -0,0 +1,21 @@
<test>
<settings>
<max_threads>16</max_threads>
<max_memory_usage>10G</max_memory_usage>
</settings>
<substitutions>
<substitution>
<name>settings</name>
<values>
<value>join_algorithm='hash'</value>
<value>join_algorithm='parallel_hash'</value>
<value>join_algorithm='partial_merge', max_bytes_in_join='1G'</value>
<value>join_algorithm='grace_hash', max_bytes_in_join='100M'</value>
</values>
</substitution>
</substitutions>
<query short='numbers'>SELECT sum(n) FROM (SELECT number * 2 AS n FROM numbers_mt(10000000)) AS lhs JOIN (SELECT number * 3 AS n FROM numbers_mt(10000000)) AS rhs USING (n) SETTINGS {settings}</query>
<query short='numbers_hashed'>SELECT sum(n) FROM (SELECT intHash64(number * 2) AS n FROM numbers_mt(10000000)) AS lhs JOIN (SELECT intHash64(number * 3) AS n FROM numbers_mt(10000000)) AS rhs USING (n) SETTINGS {settings}</query>
</test>