performance test for some functions that use hash tables

This commit is contained in:
Alexander Kuzmenkov 2020-05-20 05:19:02 +03:00
parent 50df893dc6
commit 09ea7253cd

View File

@ -0,0 +1,8 @@
<test>
<query>select arrayUniq(range(1 + (number % 10) * 10)) from numbers(1000000) format Null</query>
<query>select arrayDistinct(range(1 + (number % 10) * 10)) from numbers(1000000) format Null</query>
<query>select arrayEnumerateUniq(range(1 + (number % 10) * 10)) from numbers(1000000) format Null</query>
<query>select arrayIntersect(range((1 + number % 10)), range(1, (1 + number % 10) + 1)) from numbers(1000000) format Null</query>
<query>select groupUniqArray(number / 10) from numbers(1000 * 1000) group by number / 1000 format Null</query>
<query>select entropy(number / 10) from numbers(1000 * 1000) group by number / 1000 format Null</query>
</test>