2020-04-03 13:23:32 +00:00
---
toc_priority: 54
toc_title: Testing Hardware
---
2020-04-08 14:22:25 +00:00
# How to Test Your Hardware with ClickHouse {#how-to-test-your-hardware-with-clickhouse}
2020-01-06 02:29:37 +00:00
With this instruction you can run basic ClickHouse performance test on any server without installation of ClickHouse packages.
2020-03-20 10:10:48 +00:00
1. Go to “commits” page: https://github.com/ClickHouse/ClickHouse/commits/master
2020-04-07 23:47:58 +00:00
2. Click on the first green check mark or red cross with green “ClickHouse Build Check” and click on the “Details” link near “ClickHouse Build Check”. There is no such link in some commits, for example commits with documentation. In this case, choose the nearest commit having this link.
2020-07-20 19:12:02 +00:00
3. Copy the link to `clickhouse` binary for amd64 or aarch64.
2020-03-20 10:10:48 +00:00
4. ssh to the server and download it with wget:
2020-07-20 19:12:02 +00:00
```bash
2021-04-22 01:20:03 +00:00
# These links are outdated, please obtain the fresh link from the "commits" page.
2020-07-20 19:12:02 +00:00
# For amd64:
2020-09-21 23:06:19 +00:00
wget https://clickhouse-builds.s3.yandex.net/0/e29c4c3cc47ab2a6c4516486c1b77d57e7d42643/clickhouse_build_check/gcc-10_relwithdebuginfo_none_bundled_unsplitted_disable_False_binary/clickhouse
2020-07-20 19:12:02 +00:00
# For aarch64:
2020-09-21 23:06:19 +00:00
wget https://clickhouse-builds.s3.yandex.net/0/e29c4c3cc47ab2a6c4516486c1b77d57e7d42643/clickhouse_special_build_check/clang-10-aarch64_relwithdebuginfo_none_bundled_unsplitted_disable_False_binary/clickhouse
2020-07-20 19:12:02 +00:00
# Then do:
chmod a+x clickhouse
```
2020-09-21 23:07:12 +00:00
5. Download benchmark files:
2020-07-20 19:12:02 +00:00
```bash
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/benchmark-new.sh
chmod a+x benchmark-new.sh
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/queries.sql
```
2020-09-21 23:07:12 +00:00
6. Download test data according to the [Yandex.Metrica dataset ](../getting-started/example-datasets/metrica.md ) instruction (“hits” table containing 100 million rows).
2020-07-20 19:12:02 +00:00
```bash
2020-12-13 18:06:27 +00:00
wget https://datasets.clickhouse.tech/hits/partitions/hits_100m_obfuscated_v1.tar.xz
2020-07-20 19:12:02 +00:00
tar xvf hits_100m_obfuscated_v1.tar.xz -C .
mv hits_100m_obfuscated_v1/* .
```
2020-09-21 23:07:12 +00:00
7. Run the server:
2020-07-20 19:12:02 +00:00
```bash
./clickhouse server
```
2020-09-21 23:07:12 +00:00
8. Check the data: ssh to the server in another terminal
2020-07-20 19:12:02 +00:00
```bash
./clickhouse client --query "SELECT count() FROM hits_100m_obfuscated"
100000000
```
2020-09-21 23:07:12 +00:00
9. Edit the benchmark-new.sh, change `clickhouse-client` to `./clickhouse client` and add `--max_memory_usage 100000000000` parameter.
2020-07-20 19:12:02 +00:00
```bash
mcedit benchmark-new.sh
```
2020-09-21 23:07:12 +00:00
10. Run the benchmark:
2020-07-20 19:12:02 +00:00
```bash
./benchmark-new.sh hits_100m_obfuscated
```
2020-09-21 23:07:12 +00:00
11. Send the numbers and the info about your hardware configuration to clickhouse-feedback@yandex-team.com
2020-03-20 10:10:48 +00:00
2020-04-22 11:30:33 +00:00
All the results are published here: https://clickhouse.tech/benchmark/hardware/