ClickHouse/dbms/tests/performance
2019-06-16 23:25:43 +03:00
..
agg_functions_min_max_any.xml Added performance test #5170 2019-05-02 16:09:48 +03:00
array_element.xml More stable perf tests 2019-05-17 14:42:41 +03:00
array_join.xml Fix incorrect performance tests 2019-05-15 19:44:25 +03:00
base64_hits.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
base64.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
basename.xml Added performance test for "basename" function #5136 2019-05-02 16:11:58 +03:00
bounding_ratio.xml More stable perf tests 2019-05-17 14:42:41 +03:00
cidr.xml Added performance test #5170 2019-05-02 16:09:48 +03:00
column_column_comparison.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
columns_hashing.xml Fixed name of performance test 2019-06-16 12:25:20 +03:00
complex_array_creation.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
concat_hits.xml format function added 2019-05-18 15:29:10 +03:00
conditional.xml More stable perf tests 2019-05-17 14:42:41 +03:00
consistent_hashes.xml More stable perf tests 2019-05-21 13:03:36 +03:00
constant_column_comparison.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
constant_column_search.xml Perf test for upcoming review for regexp matching 2019-05-05 12:27:57 +03:00
cpu_synthetic.xml Added performance test #5170 2019-05-02 16:09:48 +03:00
create_benchmark_page.py add string comparisons performance test [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +03:00
cryptographic_hashes.xml Fix incorrect performance tests 2019-05-15 19:44:25 +03:00
date_parsing.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
date_time.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
entropy.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
first_significant_subdomain.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
fixed_string16.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
float_parsing.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
format_date_time.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
functions_coding.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
functions_geo.xml Fixed performance degradation in SELECT from MergeTree tables #5631 2019-06-14 22:11:41 +03:00
general_purpose_hashes.xml More stable perf tests 2019-05-21 13:03:36 +03:00
if_array_num.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
if_array_string.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
if_string_const.xml Fix banch of flapping perf tests. Improve average speed calculation 2019-05-13 17:09:11 +03:00
if_string_hits.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
int_parsing.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
IPv4.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
IPv6.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
joins_in_memory.xml fix whitespaces 2019-05-14 12:47:21 +03:00
json_extract_rapidjson.xml Make queries for JSONExtract* performance tests more readable for easy comparison. 2019-05-28 14:47:33 +03:00
json_extract_simdjson.xml Add precondition to run performance test with simdjson only on CPU 2019-05-28 17:47:35 +03:00
leftpad.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
linear_regression.xml some changes and fixes on regression methods 2019-05-31 00:59:40 +03:00
merge_tree_many_partitions_2.xml Added performance tests 2019-06-16 23:25:43 +03:00
merge_tree_many_partitions.xml Added performance tests 2019-06-16 23:25:43 +03:00
merge_tree_simple_select.xml Merge branch 'fix-performance-degradation-index-granularity' of github.com:yandex/ClickHouse into fix-performance-degradation-index-granularity 2019-06-14 22:36:21 +03:00
ngram_distance.xml Fixed performance test 2019-06-16 12:15:22 +03:00
number_formatting_formats.xml Fixed performance test 2019-06-16 12:16:54 +03:00
nyc_taxi.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
order_by_single_column.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
parse_engine_file.xml Improves perf tests for formatting and parsing tables with engine File 2019-05-31 11:05:26 +03:00
read_hits_with_aio.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
README.md Small performance test documentation. (#5408) 2019-05-25 13:46:08 +03:00
right.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
roundDown.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
select_format.xml Improved performance tests for formats once again 2019-06-15 22:06:02 +03:00
set_hits.xml Fix meaningless (untested) performance tests 2019-05-24 18:09:21 +03:00
set.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
simple_join_query.xml More stable perf tests 2019-05-17 14:42:41 +03:00
slices_hits.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
small_requests.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
sort.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
string_sort.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
system_numbers.xml small perf test for linear regression 2019-05-25 01:41:33 +03:00
trim_numbers.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
trim_urls.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
trim_whitespace.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
uniq.xml Remove time stop 2019-05-29 13:09:51 +03:00
url_hits.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00
visit_param_extract_raw.xml More stable perf tests 2019-05-17 14:42:41 +03:00
website.xml Move performance tests for convenience 2019-04-30 20:11:43 +03:00

ClickHouse performance tests

This directory contains .xml-files with performance tests for clickhouse-performance-test tool.

How to write performance test

First of all you should check existing tests don't cover your case. If there are no such tests than you should write your own.

There two types of performance tests:

  • First is executed in loop, and have tag <type>loop</type> in config.
  • Second one is executed only once and have tag <type>once</type> in config.

Type once should be used only for endless queries. Even if your query really long (10 seconds+), it's better to choose loop test.

After you have choosen type, you have to specify preconditions. It contains table names. Only hits_100m_single, hits_10m_single, test.hits are available in CI.

The most important part of test is stop_conditions. For loop test you should always use min_time_not_changing_for_ms stop condition. For once test you can choose between average_speed_not_changing_for_ms and max_speed_not_changing_for_ms, but first is preferable. Also you should always specify total_time_ms metric. Endless tests will be ignored by CI.

metrics and main_metric settings are not important and can be ommited, because loop tests are always compared by min_time metric and once tests compared by max_rows_per_second.

You can use substitions, create, fill and drop queries to prepare test. You can find examples in this folder.

Take into account, that these tests will run in CI which consists of 56-cores and 512 RAM machines. Queries will be executed much faster than on local laptop.

How to run performance test

You have to run clickhouse-server and after you can start testing:

$ clickhouse-performance-test --input-file my_lovely_test1.xml --input-file my_lovely_test2.xml
$ clickhouse-performance-test --input-file /my_lovely_test_dir/