better perf test

This commit is contained in:
Nikita Mikhaylov 2021-04-02 16:51:51 +03:00
parent 7a318d25ae
commit f3f550e811
2 changed files with 28 additions and 5 deletions

View File

@ -22,9 +22,6 @@
<value>Native</value>
<value>Avro</value>
<value>MsgPack</value>
<value>Parquet</value>
<value>Arrow</value>
<value>ORC</value>
</values>
</substitution>
</substitutions>
@ -35,8 +32,6 @@
<query short="'{format}' == 'Native'">SELECT * FROM table_{format} FORMAT Null</query>
<query>SELECT ClientEventTime, MobilePhoneModel, ClientIP6 FROM table_{format} FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
</test>

View File

@ -0,0 +1,28 @@
<test max_ignored_relative_change="0.2">
<preconditions>
<table_exists>test.hits</table_exists>
</preconditions>
<substitutions>
<substitution>
<name>format</name>
<values>
<value>Parquet</value>
<value>Arrow</value>
<value>ORC</value>
</values>
</substitution>
</substitutions>
<create_query>CREATE TABLE IF NOT EXISTS table_{format}(ClientEventTime DateTime, MobilePhoneModel String, ClientIP6 FixedString(16)) ENGINE=File({format})</create_query>
<fill_query>INSERT INTO table_{format} SELECT ClientEventTime, MobilePhoneModel, ClientIP6 FROM test.hits ORDER BY ClientEventTime, MobilePhoneModel, ClientIP6 LIMIT 100000</fill_query>
<query>SELECT ClientEventTime FROM table_{format} FORMAT Null</query>
<query>SELECT MobilePhoneModel FROM table_{format} FORMAT Null</query>
<query>SELECT ClientIP6 FROM table_{format} FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
</test>