mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add performance test
This commit is contained in:
parent
23d7947549
commit
b7b6380141
38
tests/performance/insert_select_default_small_block.xml
Normal file
38
tests/performance/insert_select_default_small_block.xml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<test>
|
||||||
|
<settings><max_block_size>1</max_block_size></settings>
|
||||||
|
|
||||||
|
<create_query>
|
||||||
|
CREATE TABLE insert_small_block_performance
|
||||||
|
(
|
||||||
|
`x` String,
|
||||||
|
`a` DEFAULT SHA256(x),
|
||||||
|
`b` DEFAULT SHA256(toString(a)),
|
||||||
|
`c` DEFAULT SHA256(toString(b)),
|
||||||
|
`d` DEFAULT SHA256(toString(c)),
|
||||||
|
`e` DEFAULT SHA256(toString(d)),
|
||||||
|
`f` DEFAULT SHA256(toString(e)),
|
||||||
|
`g` DEFAULT SHA256(toString(f)),
|
||||||
|
`h` DEFAULT SHA256(toString(g)),
|
||||||
|
`i` DEFAULT SHA256(toString(h)),
|
||||||
|
`j` DEFAULT SHA256(toString(i)),
|
||||||
|
`k` DEFAULT SHA256(toString(j)),
|
||||||
|
`l` DEFAULT SHA256(toString(k)),
|
||||||
|
`m` DEFAULT SHA256(toString(l)),
|
||||||
|
`n` DEFAULT SHA256(toString(m)),
|
||||||
|
`o` DEFAULT SHA256(toString(n)),
|
||||||
|
`p` DEFAULT SHA256(toString(o)),
|
||||||
|
`q` DEFAULT SHA256(toString(p)),
|
||||||
|
`r` DEFAULT SHA256(toString(q)),
|
||||||
|
`s` DEFAULT SHA256(toString(r)),
|
||||||
|
`t` DEFAULT SHA256(toString(s)),
|
||||||
|
`u` DEFAULT SHA256(toString(t)),
|
||||||
|
`v` DEFAULT SHA256(toString(u)),
|
||||||
|
`w` DEFAULT SHA256(toString(v))
|
||||||
|
)
|
||||||
|
ENGINE = Null;
|
||||||
|
</create_query>
|
||||||
|
|
||||||
|
<query>INSERT INTO insert_small_block_performance (x) SELECT toString(number) FROM numbers(10000);</query>
|
||||||
|
|
||||||
|
<drop_query>DROP TABLE IF EXISTS insert_small_block_performance</drop_query>
|
||||||
|
</test>
|
Loading…
Reference in New Issue
Block a user