mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Merge pull request #61199 from Avogar/variant-tests-fuster
Make variant tests a bit faster
This commit is contained in:
commit
be51c9d727
@ -1,51 +1,51 @@
|
||||
Memory
|
||||
test4 insert
|
||||
test4 select
|
||||
1000000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
500000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
MergeTree compact
|
||||
test4 insert
|
||||
test4 select
|
||||
1000000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
500000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
test4 select
|
||||
1000000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
500000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
MergeTree wide
|
||||
test4 insert
|
||||
test4 select
|
||||
1000000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
500000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
test4 select
|
||||
1000000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
200000
|
||||
500000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
100000
|
||||
|
@ -12,12 +12,12 @@ CH_CLIENT="$CLICKHOUSE_CLIENT --allow_experimental_variant_type=1 --allow_suspic
|
||||
function test4_insert()
|
||||
{
|
||||
echo "test4 insert"
|
||||
$CH_CLIENT -nmq "insert into test select number, NULL from numbers(200000);
|
||||
insert into test select number + 200000, number from numbers(200000);
|
||||
insert into test select number + 400000, 'str_' || toString(number) from numbers(200000);
|
||||
insert into test select number + 600000, ('lc_str_' || toString(number))::LowCardinality(String) from numbers(200000);
|
||||
insert into test select number + 800000, tuple(number, number + 1)::Tuple(a UInt32, b UInt32) from numbers(200000);
|
||||
insert into test select number + 1000000, range(number % 20 + 1)::Array(UInt64) from numbers(200000);"
|
||||
$CH_CLIENT -nmq "insert into test select number, NULL from numbers(100000);
|
||||
insert into test select number + 100000, number from numbers(100000);
|
||||
insert into test select number + 200000, 'str_' || toString(number) from numbers(100000);
|
||||
insert into test select number + 300000, ('lc_str_' || toString(number))::LowCardinality(String) from numbers(100000);
|
||||
insert into test select number + 400000, tuple(number, number + 1)::Tuple(a UInt32, b UInt32) from numbers(100000);
|
||||
insert into test select number + 500000, range(number % 20 + 1)::Array(UInt64) from numbers(100000);"
|
||||
}
|
||||
|
||||
function test4_select
|
||||
|
@ -44,9 +44,9 @@ str_38 str_38 \N
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
test2 insert
|
||||
test2 select
|
||||
2500000
|
||||
750000
|
||||
1750000
|
||||
500000
|
||||
100000
|
||||
400000
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
MergeTree compact
|
||||
test1 insert
|
||||
@ -136,14 +136,14 @@ str_38 str_38 \N
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
test2 insert
|
||||
test2 select
|
||||
2500000
|
||||
750000
|
||||
1750000
|
||||
500000
|
||||
100000
|
||||
400000
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
test2 select
|
||||
2500000
|
||||
750000
|
||||
1750000
|
||||
500000
|
||||
100000
|
||||
400000
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
MergeTree wide
|
||||
test1 insert
|
||||
@ -233,12 +233,12 @@ str_38 str_38 \N
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
test2 insert
|
||||
test2 select
|
||||
2500000
|
||||
750000
|
||||
1750000
|
||||
500000
|
||||
100000
|
||||
400000
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
test2 select
|
||||
2500000
|
||||
750000
|
||||
1750000
|
||||
500000
|
||||
100000
|
||||
400000
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
@ -29,10 +29,10 @@ function test1_select()
|
||||
function test2_insert()
|
||||
{
|
||||
echo "test2 insert"
|
||||
$CH_CLIENT -q "insert into test select number, number::Variant(UInt64)::Variant(UInt64, Array(UInt64)) from numbers(1000000) settings max_insert_block_size = 100000, min_insert_block_size_rows=100000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number % 2, NULL, number)::Variant(UInt64)::Variant(UInt64, String, Array(UInt64)) as res from numbers(1000000, 1000000) settings max_insert_block_size = 100000, min_insert_block_size_rows=100000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number % 2, NULL, 'str_' || toString(number))::Variant(String)::Variant(UInt64, String, Array(UInt64)) as res from numbers(2000000, 1000000) settings max_insert_block_size = 100000, min_insert_block_size_rows=100000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number < 3500000, if(number % 2, NULL, number)::Variant(UInt64)::Variant(UInt64, String, Array(UInt64)), if(number % 2, NULL, 'str_' || toString(number))::Variant(String)::Variant(UInt64, String, Array(UInt64))) from numbers(3000000, 1000000) settings max_insert_block_size = 100000, min_insert_block_size_rows=100000"
|
||||
$CH_CLIENT -q "insert into test select number, number::Variant(UInt64)::Variant(UInt64, Array(UInt64)) from numbers(200000) settings max_insert_block_size = 10000, min_insert_block_size_rows=10000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number % 2, NULL, number)::Variant(UInt64)::Variant(UInt64, String, Array(UInt64)) as res from numbers(200000, 200000) settings max_insert_block_size = 10000, min_insert_block_size_rows=10000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number % 2, NULL, 'str_' || toString(number))::Variant(String)::Variant(UInt64, String, Array(UInt64)) as res from numbers(400000, 200000) settings max_insert_block_size = 10000, min_insert_block_size_rows=10000"
|
||||
$CH_CLIENT -q "insert into test select number, if(number < 3500000, if(number % 2, NULL, number)::Variant(UInt64)::Variant(UInt64, String, Array(UInt64)), if(number % 2, NULL, 'str_' || toString(number))::Variant(String)::Variant(UInt64, String, Array(UInt64))) from numbers(600000, 200000) settings max_insert_block_size = 10000, min_insert_block_size_rows=10000"
|
||||
}
|
||||
|
||||
function test2_select()
|
||||
|
Loading…
Reference in New Issue
Block a user