2019-05-25 10:46:08 +00:00
|
|
|
## ClickHouse performance tests
|
|
|
|
|
2020-04-18 12:44:06 +00:00
|
|
|
This directory contains `.xml`-files with performance tests for @akuzm tool.
|
2019-05-25 10:46:08 +00:00
|
|
|
|
|
|
|
### How to write performance test
|
|
|
|
|
2023-08-17 18:00:34 +00:00
|
|
|
First of all you should check existing tests don't cover your case. If there are no such tests then you should write your own.
|
2019-05-25 10:46:08 +00:00
|
|
|
|
|
|
|
You can use `substitions`, `create`, `fill` and `drop` queries to prepare test. You can find examples in this folder.
|
|
|
|
|
2023-08-17 18:00:34 +00:00
|
|
|
If your test takes more than 10 minutes, please, add tag `long` to have an opportunity to run all tests and skip long ones.
|
2019-10-14 10:13:32 +00:00
|
|
|
|
2019-05-25 10:46:08 +00:00
|
|
|
### How to run performance test
|
|
|
|
|
2020-08-26 17:34:05 +00:00
|
|
|
TODO @akuzm
|
|
|
|
|
|
|
|
### How to validate single test
|
|
|
|
|
|
|
|
```
|
2022-02-20 01:40:10 +00:00
|
|
|
pip3 install clickhouse_driver scipy
|
2023-12-27 12:16:17 +00:00
|
|
|
../../tests/performance/scripts/perf.py --runs 1 insert_parallel.xml
|
2020-08-26 17:34:05 +00:00
|
|
|
```
|