Added performance test

This commit is contained in:
Maksim Kita 2021-02-01 12:25:52 +03:00
parent d2b8d9886f
commit 9a1e52a80d

View File

@ -0,0 +1,33 @@
<test max_ignored_relative_change="0.2">
<settings>
<allow_experimental_bigint_types>1</allow_experimental_bigint_types>
<max_memory_usage>15G</max_memory_usage>
</settings>
<create_query>CREATE TABLE t (a UInt64, b UInt256, c Int128, d Int256, f String, g FixedString(20)) ENGINE = Memory</create_query>
<!-- use less threads to save memory -->
<fill_query>
INSERT INTO t
SELECT number, number, number, number, toString(number) as string, string
FROM numbers_mt(200000000) SETTINGS max_threads = 8
</fill_query>
<drop_query>DROP TABLE IF EXISTS t</drop_query>
<query>SELECT reinterpretAsUInt8(a), reinterpretAsUInt8(b), reinterpretAsUInt8(c), reinterpretAsUInt8(d), reinterpretAsUInt8(f), reinterpretAsUInt8(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsUInt16(a), reinterpretAsUInt16(b), reinterpretAsUInt16(c), reinterpretAsUInt16(d), reinterpretAsUInt16(f), reinterpretAsUInt16(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsUInt32(a), reinterpretAsUInt32(b), reinterpretAsUInt32(c), reinterpretAsUInt32(d), reinterpretAsUInt32(f), reinterpretAsUInt32(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsUInt64(a), reinterpretAsUInt64(b), reinterpretAsUInt64(c), reinterpretAsUInt64(d), reinterpretAsUInt64(f), reinterpretAsUInt64(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsUInt256(a), reinterpretAsUInt256(b), reinterpretAsUInt256(c), reinterpretAsUInt256(d), reinterpretAsUInt256(f), reinterpretAsUInt256(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt8(a), reinterpretAsInt8(b), reinterpretAsInt8(c), reinterpretAsInt8(d), reinterpretAsInt8(f), reinterpretAsInt8(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt16(a), reinterpretAsInt16(b), reinterpretAsInt16(c), reinterpretAsInt16(d), reinterpretAsInt16(f), reinterpretAsInt16(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt32(a), reinterpretAsInt32(b), reinterpretAsInt32(c), reinterpretAsInt32(d), reinterpretAsInt32(f), reinterpretAsInt32(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt64(a), reinterpretAsInt64(b), reinterpretAsInt64(c), reinterpretAsInt64(d), reinterpretAsInt64(f), reinterpretAsInt64(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt128(a), reinterpretAsInt128(b), reinterpretAsInt128(c), reinterpretAsInt128(d), reinterpretAsInt128(f), reinterpretAsInt64(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsInt256(a), reinterpretAsInt256(b), reinterpretAsInt256(c), reinterpretAsInt256(d), reinterpretAsInt256(f), reinterpretAsInt256(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsString(a), reinterpretAsString(b), reinterpretAsString(c), reinterpretAsString(d), reinterpretAsInt128(f), reinterpretAsString(g) FROM t FORMAT Null</query>
<query>SELECT reinterpretAsFixedString(a), reinterpretAsFixedString(b), reinterpretAsFixedString(c), reinterpretAsFixedString(d), reinterpretAsFixedString(g) FROM t FORMAT Null</query>
</test>