ClickHouse/dbms/tests/performance/consistent_hashes.xml

38 lines
1.0 KiB
XML
Raw Normal View History

<test>
<name>consistent_hashes</name>
<type>once</type>
<stop_conditions>
<any_of>
2019-05-21 10:03:36 +00:00
<average_speed_not_changing_for_ms>6000</average_speed_not_changing_for_ms>
<total_time_ms>15000</total_time_ms>
</any_of>
</stop_conditions>
<main_metric>
<max_rows_per_second />
<avg_rows_per_second />
</main_metric>
<substitutions>
<substitution>
<name>hash_func</name>
<values>
<value>yandexConsistentHash</value>
<value>jumpConsistentHash</value>
</values>
</substitution>
<substitution>
<name>buckets</name>
<values>
<value>2</value>
<value>500</value>
<value>65535</value>
</values>
</substitution>
</substitutions>
2019-05-15 16:44:25 +00:00
<query>SELECT {hash_func}(number, {buckets}) FROM system.numbers</query>
<query>SELECT sumburConsistentHash(toUInt32(number), {buckets}) FROM system.numbers</query>
</test>