2018-02-26 19:00:40 +00:00
|
|
|
<test>
|
|
|
|
<name>consistent_hashes</name>
|
|
|
|
<type>once</type>
|
|
|
|
|
|
|
|
<stop_conditions>
|
|
|
|
<any_of>
|
2019-05-13 14:09:11 +00:00
|
|
|
<max_speed_not_changing_for_ms>1000</max_speed_not_changing_for_ms>
|
2018-02-26 19:00:40 +00:00
|
|
|
<total_time_ms>5000</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>
|
2018-02-27 00:01:51 +00:00
|
|
|
<value>65535</value>
|
2018-02-26 19:00:40 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
|
|
|
<query>SELECT {hash_func}(number, {buckets}) FROM system.numbers LIMIT 1000000000</query>
|
2018-02-27 00:01:51 +00:00
|
|
|
<query>SELECT sumburConsistentHash(toUInt32(number), {buckets}) FROM system.numbers LIMIT 10000</query>
|
2018-02-26 19:00:40 +00:00
|
|
|
</test>
|