## ClickHouse performance tests This directory contains `.xml`-files with performance tests. ### How to write a performance test First of all please check that existing tests don't cover your case. If there are no such tests then you can write your own test. Test template: ``` xml 1 1 x 10 50 y 5 8 CREATE TABLE tab1 [..] CREATE TABLE tab2 [..] INSERT INTO tab1 [...] INSERT INTO tab2 [...] SELECT [...] WHERE col BETWEEN {x} AND {y} SELECT [...] SELECT [...] DROP TABLE tab1 DROP TABLE tab2 ``` If your test takes more than 10 minutes, please, add tag `long` to have an opportunity to run all tests and skip long ones. ### How to run performance test TODO ### How to validate single test ``` pip3 install clickhouse_driver scipy ../../tests/performance/scripts/perf.py --runs 1 insert_parallel.xml ```