ClickHouse/dbms/tests/performance/general_purpose_hashes_on_UUID.xml
2020-02-14 22:46:27 +03:00

65 lines
2.0 KiB
XML

<test>
<type>loop</type>
<stop_conditions>
<all_of>
<iterations>3</iterations>
<min_time_not_changing_for_ms>10000</min_time_not_changing_for_ms>
</all_of>
<any_of>
<iterations>5</iterations>
<total_time_ms>60000</total_time_ms>
</any_of>
</stop_conditions>
<substitutions>
<substitution>
<name>hash_func</name>
<values>
<value>cityHash64</value>
<value>farmHash64</value>
<value>metroHash64</value>
<value>murmurHash2_32</value>
<value>murmurHash2_64</value>
<value>murmurHash3_32</value>
<value>murmurHash3_64</value>
<value>javaHash</value>
<value>hiveHash</value>
<value>xxHash32</value>
<value>xxHash64</value>
</values>
</substitution>
<substitution>
<name>value</name>
<values>
<value>materialize(toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0'))</value>
<value>generateUUIDv4()</value>
</values>
</substitution>
<substitution>
<name>value_slow</name>
<values>
<value>toDecimal128(number, 23)</value>
</values>
</substitution>
<substitution>
<name>table</name>
<values>
<value>numbers(100000000)</value>
<value>numbers_mt(1000000000)</value>
</values>
</substitution>
<substitution>
<name>table_slow</name>
<values>
<value>numbers(1000000)</value>
<value>numbers_mt(10000000)</value>
</values>
</substitution>
</substitutions>
<query>SELECT count() from {table} where not ignore({hash_func}({value}))</query>
<query>SELECT count() from {table_slow} where not ignore({hash_func}({value_slow}))</query>
</test>