ClickHouse/tests/performance/arithmetic.xml

67 lines
1.8 KiB
XML
Raw Normal View History

2021-05-20 14:24:05 +00:00
<test max_ignored_relative_change="0.7">
2020-03-12 13:06:29 +00:00
<settings>
2020-03-13 00:59:04 +00:00
<max_memory_usage>30000000000</max_memory_usage>
2020-03-12 13:06:29 +00:00
</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>
2020-02-25 10:10:03 +00:00
<value>moduloOrZero</value>
</values>
</substitution>
</substitutions>
<create_query>
2020-03-13 13:30:54 +00:00
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
2020-03-13 00:59:04 +00:00
FROM numbers_mt(200000000)
SETTINGS max_threads = 4
;
</create_query>
2020-03-18 00:33:32 +00:00
<query>SELECT count() FROM nums WHERE NOT ignore(
2020-03-18 15:31:03 +00:00
{op}({arg}, {arg}),
{op}({arg}, {arg} + 1),
{op}({arg}, {arg} + 2),
{op}({arg}, {arg} + 3),
{op}({arg}, {arg} + 4),
{op}({arg}, {arg} + 5),
{op}({arg}, {arg} + 6),
{op}({arg}, {arg} + 7)
2020-03-18 00:33:32 +00:00
)</query>
<drop_query>DROP TABLE nums</drop_query>
</test>