ClickHouse/dbms/tests/performance/arithmetic.xml
Alexander Kuzmenkov 7e6585328f fixup
2020-03-13 16:30:54 +03:00

69 lines
1.9 KiB
XML

<test>
<stop_conditions>
<all_of>
<iterations>10</iterations>
<min_time_not_changing_for_ms>100</min_time_not_changing_for_ms>
</all_of>
<any_of>
<iterations>100</iterations>
<total_time_ms>1000</total_time_ms>
</any_of>
</stop_conditions>
<settings>
<max_memory_usage>30000000000</max_memory_usage>
</settings>
<substitutions>
<substitution>
<name>arg</name>
<values>
<value>u8</value>
<value>u16</value>
<value>u32</value>
<value>u64</value>
<value>i8</value>
<value>i16</value>
<value>i32</value>
<value>i64</value>
<value>f32</value>
<value>f64</value>
</values>
</substitution>
<substitution>
<name>op</name>
<values>
<value>plus</value>
<value>minus</value>
<value>multiply</value>
<value>divide</value>
<value>intDivOrZero</value>
<value>moduloOrZero</value>
</values>
</substitution>
</substitutions>
<create_query>
CREATE TABLE nums ENGINE Memory AS
WITH number as x
SELECT
toUInt8(x) u8,
toUInt16(x) u16,
toUInt32(x) u32,
toUInt64(x) u64,
toInt8(x) i8,
toInt16(x) i16,
toInt32(x) i32,
toInt64(x) i64,
toFloat32(x) f32,
toFloat64(x) f64
FROM numbers_mt(200000000)
SETTINGS max_threads = 4
;
</create_query>
<query>SELECT count() FROM nums WHERE NOT ignore({op}({arg}, {arg}))</query>
<drop_query>DROP TABLE nums</drop_query>
</test>