diff --git a/docker/test/performance-comparison/perf.py b/docker/test/performance-comparison/perf.py index 37564c5ec40..5135dfd4f78 100755 --- a/docker/test/performance-comparison/perf.py +++ b/docker/test/performance-comparison/perf.py @@ -66,7 +66,8 @@ for e in root.findall('query'): if 'short' in e.attrib: new_queries, [is_short] = substitute_parameters([e.text], [[e.attrib['short']]]) for i, s in enumerate(is_short): - if eval(s): + # Don't print this if we only need to print the queries. + if eval(s) and not args.print_queries: print(f'short\t{i + len(test_queries)}') else: new_queries = substitute_parameters([e.text]) diff --git a/tests/performance/codecs_float_insert.xml b/tests/performance/codecs_float_insert.xml index 40bda3e5458..ece6f43e8b8 100644 --- a/tests/performance/codecs_float_insert.xml +++ b/tests/performance/codecs_float_insert.xml @@ -1,4 +1,4 @@ -# FIXME this instability is abysmal, investigate the unstable queries + 1 diff --git a/tests/performance/cryptographic_hashes.xml b/tests/performance/cryptographic_hashes.xml index 13ded0b0159..bdf0be60115 100644 --- a/tests/performance/cryptographic_hashes.xml +++ b/tests/performance/cryptographic_hashes.xml @@ -1,7 +1,7 @@ - crypto_hash_func + hash_slow MD5 SHA1 @@ -18,43 +18,43 @@ - string + string_small materialize('') toString(1000000000+number) - string_slow + string_large materialize('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sollicitudin nisi ac erat mollis dapibus. Maecenas leo purus, bibendum eu erat eget, iaculis molestie tortor. Phasellus maximus odio nec mauris ultrices dictum. Morbi efficitur nisl eget congue mollis. Vestibulum pharetra diam vitae urna interdum, eget ultricies justo sollicitudin. Nunc sit amet purus id leo tempus dignissim. Donec ac lacus ut orci tempus scelerisque quis ultricies nibh. Nullam lobortis, erat ac ullamcorper interdum, odio nisl elementum quam, ut malesuada massa nunc eget quam. Nam suscipit neque quis sapien ultricies imperdiet. Maecenas augue libero, finibus tristique sagittis et, semper nec arcu. Morbi non tortor ultrices, sollicitudin justo sed, accumsan ligula. Nullam at ipsum in nibh auctor ullamcorper. Nullam laoreet neque id lorem condimentum tincidunt. Nullam vel orci nibh. Ut sit amet sem faucibus, fringilla orci at, lacinia enim. Mauris imperdiet ex id scelerisque eleifend. Ut tincidunt massa nibh, viverra pharetra metus') - table_fast + numbers_small - zeros(10000000) - zeros_mt(100000000) + numbers(10000) + numbers_mt(100000) - table + numbers_medium + + numbers(100000) + numbers_mt(1000000) + + + + numbers_large numbers(1000000) numbers_mt(10000000) - - table_slow - - zeros(100000) - zeros_mt(1000000) - - - SELECT ignore({crypto_hash_func}({string})) FROM {table} FORMAT Null - SELECT ignore({crypto_hash_func}({string_slow})) FROM {table_slow} FORMAT Null - SELECT ignore({hash_fast}({string})) FROM {table_fast} FORMAT Null - SELECT ignore({hash_fast}({string_slow})) FROM {table} FORMAT Null + SELECT ignore({hash_fast}({string_small})) FROM {numbers_medium} FORMAT Null + SELECT ignore({hast_slow}({string_large})) FROM {numbers_small} FORMAT Null + SELECT ignore({hash_fast}({string_small})) FROM {numbers_large} FORMAT Null + SELECT ignore({hash_fast}({string_large})) FROM {numbers_medium} FORMAT Null diff --git a/tests/performance/decimal_aggregates.xml b/tests/performance/decimal_aggregates.xml index e14054b218e..88a96770c96 100644 --- a/tests/performance/decimal_aggregates.xml +++ b/tests/performance/decimal_aggregates.xml @@ -1,6 +1,6 @@ CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory - INSERT INTO t SELECT number AS x, x AS d32, x AS d64, x d128 FROM numbers(10000000) + INSERT INTO t SELECT number AS x, x / 10 AS d32, x AS d64, x d128 FROM numbers(10000000) DROP TABLE IF EXISTS t SELECT min(d32), max(d32), argMin(x, d32), argMax(x, d32) FROM t diff --git a/tests/performance/string_sort.xml b/tests/performance/string_sort.xml index cb5b2902b6d..94e115ff310 100644 --- a/tests/performance/string_sort.xml +++ b/tests/performance/string_sort.xml @@ -42,12 +42,11 @@ - - + + - - - - + + +