mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Merge pull request #8947 from ClickHouse/sum-map-add-perf-test
Added performance test for sumMap
This commit is contained in:
commit
dbf998cc30
40
dbms/tests/performance/sum_map.xml
Normal file
40
dbms/tests/performance/sum_map.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<test>
|
||||
<type>once</type>
|
||||
|
||||
<stop_conditions>
|
||||
<all_of>
|
||||
<total_time_ms>30000</total_time_ms>
|
||||
</all_of>
|
||||
</stop_conditions>
|
||||
|
||||
<settings>
|
||||
<max_threads>1</max_threads>
|
||||
</settings>
|
||||
|
||||
<substitutions>
|
||||
<substitution>
|
||||
<name>scale</name>
|
||||
<values>
|
||||
<value>1000000</value>
|
||||
<value>10000000</value>
|
||||
</values>
|
||||
</substitution>
|
||||
<substitution>
|
||||
<name>func</name>
|
||||
<values>
|
||||
<value>sumMap</value>
|
||||
<value>sumMapWithOverflow</value>
|
||||
</values>
|
||||
</substitution>
|
||||
</substitutions>
|
||||
|
||||
<create_query>
|
||||
CREATE TEMPORARY TABLE sum_map_{scale} AS
|
||||
SELECT
|
||||
arrayMap(x -> (x % 23), range(50)) AS key,
|
||||
arrayMap(x -> intDiv(number, x + 1), range(50)) AS val
|
||||
FROM numbers({scale})
|
||||
</create_query>
|
||||
|
||||
<query>SELECT {func}(key, val) FROM sum_map_{scale} FORMAT Null</query>
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user