2021-03-25 21:00:18 +00:00
|
|
|
<test max_ignored_relative_change="0.2">
|
2020-05-09 01:28:31 +00:00
|
|
|
<settings>
|
|
|
|
<allow_suspicious_codecs>1</allow_suspicious_codecs>
|
|
|
|
</settings>
|
|
|
|
|
2019-12-23 06:40:10 +00:00
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
|
|
|
<name>codec</name>
|
|
|
|
<values>
|
|
|
|
<value>NONE</value> <!-- as a baseline -->
|
|
|
|
<value>LZ4</value>
|
|
|
|
<value>ZSTD</value>
|
|
|
|
<value>Delta</value>
|
|
|
|
<value>T64</value>
|
|
|
|
<value>DoubleDelta</value>
|
|
|
|
<value>Gorilla</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>type</name>
|
|
|
|
<values>
|
|
|
|
<value>UInt64</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>seq_type</name>
|
|
|
|
<values>
|
|
|
|
<value>seq</value>
|
|
|
|
<value>mon</value>
|
|
|
|
<value>rnd</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
2020-01-08 14:35:28 +00:00
|
|
|
<substitution>
|
|
|
|
<name>num_rows</name>
|
|
|
|
<values>
|
2020-06-08 13:57:33 +00:00
|
|
|
<value>20000000</value>
|
2020-01-08 14:35:28 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
2019-12-23 06:40:10 +00:00
|
|
|
</substitutions>
|
|
|
|
|
2020-02-13 23:11:43 +00:00
|
|
|
<create_query>CREATE TABLE IF NOT EXISTS codec_{seq_type}_{type}_{codec} (n {type} CODEC({codec}))
|
|
|
|
ENGINE = MergeTree PARTITION BY tuple() ORDER BY tuple()
|
|
|
|
SETTINGS parts_to_delay_insert = 5000, parts_to_throw_insert = 5000;</create_query>
|
2020-02-13 18:42:55 +00:00
|
|
|
<create_query>system stop merges</create_query>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
|
|
|
<!-- Using limit to make query finite, allowing it to be run multiple times in a loop, reducing mean error -->
|
2020-01-08 14:35:28 +00:00
|
|
|
<query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
|
|
|
<query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number*512+(intHash64(number)%512) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
|
|
|
<query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT intHash64(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
2020-02-13 18:42:55 +00:00
|
|
|
<drop_query>system start merges</drop_query>
|
2019-12-23 06:40:10 +00:00
|
|
|
<drop_query>DROP TABLE IF EXISTS codec_{seq_type}_{type}_{codec}</drop_query>
|
|
|
|
|
|
|
|
</test>
|