mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Added performance test in appreciation of #5797
This commit is contained in:
parent
a1cfdf2a60
commit
db0f1825b7
42
dbms/tests/performance/merge_table_streams.xml
Normal file
42
dbms/tests/performance/merge_table_streams.xml
Normal file
@ -0,0 +1,42 @@
|
||||
<test>
|
||||
<type>loop</type>
|
||||
|
||||
<preconditions>
|
||||
<table_exists>hits_100m_single</table_exists>
|
||||
</preconditions>
|
||||
|
||||
<stop_conditions>
|
||||
<all_of>
|
||||
<total_time_ms>60000</total_time_ms>
|
||||
<iterations>3</iterations>
|
||||
</all_of>
|
||||
<any_of>
|
||||
<iterations>30</iterations>
|
||||
</any_of>
|
||||
</stop_conditions>
|
||||
|
||||
<main_metric>
|
||||
<min_time/>
|
||||
</main_metric>
|
||||
|
||||
<settings>
|
||||
<max_threads>5</max_threads>
|
||||
</settings>
|
||||
|
||||
<!-- Create four empty tables. We will test select from Merge table involving one real table and four empty tables.
|
||||
In previous ClickHouse versions, with max_threads = 5, only one stream will be requested from each table,
|
||||
and the query will be processed with just one thread.
|
||||
-->
|
||||
<create_query>CREATE TABLE merge_table_streams_1 AS hits_100m_single</create_query>
|
||||
<create_query>CREATE TABLE merge_table_streams_2 AS hits_100m_single</create_query>
|
||||
<create_query>CREATE TABLE merge_table_streams_3 AS hits_100m_single</create_query>
|
||||
<create_query>CREATE TABLE merge_table_streams_4 AS hits_100m_single</create_query>
|
||||
|
||||
<query>SELECT UserID FROM merge(default, '^(hits_100m_single|merge_table_streams_\\d)$') WHERE UserID = 12345678901234567890</query>
|
||||
|
||||
<drop_query>DROP TABLE merge_table_streams_1</drop_query>
|
||||
<drop_query>DROP TABLE merge_table_streams_2</drop_query>
|
||||
<drop_query>DROP TABLE merge_table_streams_3</drop_query>
|
||||
<drop_query>DROP TABLE merge_table_streams_4</drop_query>
|
||||
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user