Add performance test

This commit is contained in:
avogar 2021-10-27 17:29:36 +03:00
parent d1ef96a5ef
commit d30aecbda8

View File

@ -0,0 +1,15 @@
<test>
<create_query>CREATE TABLE IF NOT EXISTS table_tsv (s Nullable(String)) ENGINE = File('TSV')</create_query>
<create_query>CREATE TABLE IF NOT EXISTS table_csv (s Nullable(String)) ENGINE = File('CSV')</create_query>
<fill_query>INSERT INTO table_tsv SELECT number % 2 ? 'Some text' : NULL FROM numbers(1000000) FORMAT TSV</fill_query>
<fill_query>INSERT INTO table_csv SELECT number % 2 ? 'Some text' : NULL FROM numbers(1000000) FORMAT CSV</fill_query>
<query>SELECT * FROM table_tsv FORMAT Null</query>
<query>SELECT * FROM table_csv FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS table_tsv</drop_query>
<drop_query>DROP TABLE IF EXISTS table_csv</drop_query>
</test>