ClickHouse/tests/performance/general_purpose_hashes.xml
Nikita Taranov d1c258cf20
Add xxh3 hash function (#43411)
* impl

* try fix

* add docs

* add test

* rm unused file

* excellent
2022-11-26 00:14:08 +01:00

54 lines
2.7 KiB
XML

<test>
<substitutions>
<substitution>
<name>gp_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>murmurHash3_128</value>
<value>javaHash</value>
<value>hiveHash</value>
<value>xxHash32</value>
<value>xxHash64</value>
<value>xxh3</value>
<value>CRC32</value>
</values>
</substitution>
<substitution>
<name>string_slow</name>
<values>
<value>materialize('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sollicitudin nisi ac erat mollis dapibus. Maecenas leo purus, bibendum eu erat eget, iaculis molestie tortor. Phasellus maximus odio nec mauris ultrices dictum. Morbi efficitur nisl eget congue mollis. Vestibulum pharetra diam vitae urna interdum, eget ultricies justo sollicitudin. Nunc sit amet purus id leo tempus dignissim. Donec ac lacus ut orci tempus scelerisque quis ultricies nibh. Nullam lobortis, erat ac ullamcorper interdum, odio nisl elementum quam, ut malesuada massa nunc eget quam. Nam suscipit neque quis sapien ultricies imperdiet. Maecenas augue libero, finibus tristique sagittis et, semper nec arcu. Morbi non tortor ultrices, sollicitudin justo sed, accumsan ligula. Nullam at ipsum in nibh auctor ullamcorper. Nullam laoreet neque id lorem condimentum tincidunt. Nullam vel orci nibh. Ut sit amet sem faucibus, fringilla orci at, lacinia enim. Mauris imperdiet ex id scelerisque eleifend. Ut tincidunt massa nibh, viverra pharetra metus')</value>
</values>
</substitution>
<substitution>
<name>string</name>
<values>
<value>materialize('')</value>
<value>toString(1000000000+number)</value>
</values>
</substitution>
<substitution>
<name>table_slow</name>
<values>
<value>zeros(1000000)</value>
<value>zeros_mt(5000000)</value>
</values>
</substitution>
<substitution>
<name>table</name>
<values>
<value>numbers(10000000)</value>
<value>numbers_mt(500000000)</value>
</values>
</substitution>
</substitutions>
<query>SELECT count() from {table} where not ignore({gp_hash_func}({string}))</query>
<query>SELECT count() from {table_slow} where not ignore({gp_hash_func}({string_slow}))</query>
</test>