ClickHouse/dbms/tests/performance/logical_functions_small.xml

57 lines
4.1 KiB
XML
Raw Normal View History

2020-02-27 11:40:52 +00:00
<test>
<times_to_run>1</times_to_run>
<stop_conditions>
<all_of>
<iterations>15</iterations>
<min_time_not_changing_for_ms>20000</min_time_not_changing_for_ms>
</all_of>
<any_of>
<iterations>120</iterations>
<total_time_ms>60000</total_time_ms>
</any_of>
</stop_conditions>
<settings>
<max_threads>1</max_threads>
</settings>
<!-- Individual execution times are adjusted for all test queries to be between 200 and 300 milliseconds -->
2020-02-27 11:40:52 +00:00
<!-- We have to use Memory table engine for very fast operations (to avoid the slow code that materializes the data),
so that the weight of their execution time keeps high and performance test results make sense
-->
2020-02-28 13:12:43 +00:00
<create_query>CREATE DATABASE IF NOT EXISTS test_logical_functions</create_query>
2020-02-27 11:40:52 +00:00
<create_query>CREATE TABLE test_logical_functions._2_0_UInt8 (x1 UInt8, x2 UInt8) ENGINE = Memory</create_query>
<create_query>CREATE TABLE test_logical_functions._2_1_UInt8 (x1 UInt8, x2 UInt8) ENGINE = Memory</create_query>
<fill_query>INSERT INTO test_logical_functions._2_0_UInt8 SELECT materialize(0) AS x1, materialize(0) AS x2 FROM numbers(1000000000)</fill_query>
<fill_query>INSERT INTO test_logical_functions._2_1_UInt8 SELECT materialize(1) AS x1, materialize(1) AS x2 FROM numbers(1000000000)</fill_query>
2020-02-27 11:40:52 +00:00
<query>SELECT count() FROM test_logical_functions._2_1_UInt8 WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM test_logical_functions._2_0_UInt8 WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM test_logical_functions._2_0_UInt8 WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM test_logical_functions._2_1_UInt8 WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM test_logical_functions._2_1_UInt8 WHERE NOT ignore(xor(x1,x2))</query>
<query>SELECT count() FROM (SELECT toNullable(materialize(1)) AS x1, toNullable(materialize(1)) AS x2 FROM numbers(30000000)) WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM (SELECT toNullable(materialize(0)) AS x1, toNullable(materialize(0)) AS x2 FROM numbers(40000000)) WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM (SELECT toNullable(materialize(0)) AS x1, toNullable(materialize(0)) AS x2 FROM numbers(40000000)) WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM (SELECT toNullable(materialize(1)) AS x1, toNullable(materialize(1)) AS x2 FROM numbers(30000000)) WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM (SELECT toNullable(materialize(1)) AS x1, toNullable(materialize(1)) AS x2 FROM numbers(100000000)) WHERE NOT ignore(xor(x1,x2))</query>
2020-02-27 11:40:52 +00:00
<!-- Check with bigger types: UInt16, UInt32, UInt64, Float64 -->
2020-02-28 13:12:43 +00:00
<query>SELECT count() FROM (SELECT materialize(toUInt16(1)) AS x1, materialize(toUInt32(1)) AS x2 FROM numbers(200000000)) WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM (SELECT materialize(toUInt32(1)) AS x1, materialize(toUInt64(1)) AS x2 FROM numbers(100000000)) WHERE NOT ignore(and(x1,x2))</query>
<query>SELECT count() FROM (SELECT materialize(toUInt64(1)) AS x1, materialize(0.1) AS x2 FROM numbers(100000000)) WHERE NOT ignore(and(x1,x2))</query>
2020-02-28 13:12:43 +00:00
<query>SELECT count() FROM (SELECT materialize(toUInt16(1)) AS x1, materialize(toUInt32(1)) AS x2 FROM numbers(200000000)) WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM (SELECT materialize(toUInt32(1)) AS x1, materialize(toUInt64(1)) AS x2 FROM numbers(100000000)) WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM (SELECT materialize(toUInt64(1)) AS x1, materialize(0.1) AS x2 FROM numbers(100000000)) WHERE NOT ignore(or(x1,x2))</query>
<query>SELECT count() FROM (SELECT materialize(toUInt64(1)) AS x1, materialize(toUInt64(1)) AS x2 FROM numbers(100000000)) WHERE NOT ignore(xor(x1,x2))</query>
2020-02-27 11:40:52 +00:00
<drop_query>DROP TABLE test_logical_functions._2_0_UInt8</drop_query>
<drop_query>DROP TABLE test_logical_functions._2_1_UInt8</drop_query>
<drop_query>DROP DATABASE test_logical_functions</drop_query>
2020-02-28 17:06:19 +00:00
</test>