2020-04-03 13:23:32 +00:00
|
|
|
---
|
2022-04-09 13:29:05 +00:00
|
|
|
sidebar_position: 54
|
|
|
|
sidebar_label: Testing Hardware
|
2020-04-03 13:23:32 +00:00
|
|
|
---
|
|
|
|
|
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
|
|
|
|
2021-07-28 18:06:02 +00:00
|
|
|
You can run basic ClickHouse performance test on any server without installation of ClickHouse packages.
|
|
|
|
|
|
|
|
|
|
|
|
## Automated Run
|
|
|
|
|
|
|
|
You can run benchmark with a single script.
|
|
|
|
|
|
|
|
1. Download the script.
|
|
|
|
```
|
|
|
|
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/hardware.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Run the script.
|
|
|
|
```
|
|
|
|
chmod a+x ./hardware.sh
|
|
|
|
./hardware.sh
|
|
|
|
```
|
|
|
|
|
2021-10-29 16:37:56 +00:00
|
|
|
3. Copy the output and send it to feedback@clickhouse.com
|
2021-07-28 18:06:02 +00:00
|
|
|
|
2021-09-19 20:05:54 +00:00
|
|
|
All the results are published here: https://clickhouse.com/benchmark/hardware/
|
2021-07-28 18:06:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Manual Run
|
|
|
|
|
|
|
|
Alternatively you can perform benchmark in the following steps.
|
2020-01-06 02:29:37 +00:00
|
|
|
|
2021-07-27 21:57:28 +00:00
|
|
|
1. ssh to the server and download the binary with wget:
|
2020-07-20 19:12:02 +00:00
|
|
|
```bash
|
|
|
|
# For amd64:
|
2021-09-22 00:22:57 +00:00
|
|
|
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
2020-07-20 19:12:02 +00:00
|
|
|
# For aarch64:
|
2021-09-22 00:22:57 +00:00
|
|
|
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
2022-03-01 10:29:46 +00:00
|
|
|
# For powerpc64le:
|
|
|
|
wget https://builds.clickhouse.com/master/powerpc64le/clickhouse
|
|
|
|
# For freebsd:
|
|
|
|
wget https://builds.clickhouse.com/master/freebsd/clickhouse
|
|
|
|
# For freebsd-aarch64:
|
|
|
|
wget https://builds.clickhouse.com/master/freebsd-aarch64/clickhouse
|
|
|
|
# For freebsd-powerpc64le:
|
|
|
|
wget https://builds.clickhouse.com/master/freebsd-powerpc64le/clickhouse
|
|
|
|
# For macos:
|
|
|
|
wget https://builds.clickhouse.com/master/macos/clickhouse
|
|
|
|
# For macos-aarch64:
|
|
|
|
wget https://builds.clickhouse.com/master/macos-aarch64/clickhouse
|
2020-07-20 19:12:02 +00:00
|
|
|
# Then do:
|
|
|
|
chmod a+x clickhouse
|
|
|
|
```
|
2021-07-27 21:57:28 +00:00
|
|
|
2. 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
|
|
|
|
```
|
2022-04-11 05:01:34 +00:00
|
|
|
3. Download the [web analytics dataset](../getting-started/example-datasets/metrica.md) (“hits” table containing 100 million rows).
|
2020-07-20 19:12:02 +00:00
|
|
|
```bash
|
2021-09-22 00:22:57 +00:00
|
|
|
wget https://datasets.clickhouse.com/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/* .
|
|
|
|
```
|
2021-07-27 21:57:28 +00:00
|
|
|
4. Run the server:
|
2020-07-20 19:12:02 +00:00
|
|
|
```bash
|
|
|
|
./clickhouse server
|
|
|
|
```
|
2021-07-27 21:57:28 +00:00
|
|
|
5. 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
|
|
|
|
```
|
2021-07-28 18:06:02 +00:00
|
|
|
6. Run the benchmark:
|
2020-07-20 19:12:02 +00:00
|
|
|
```bash
|
|
|
|
./benchmark-new.sh hits_100m_obfuscated
|
|
|
|
```
|
2022-03-12 06:24:31 +00:00
|
|
|
7. Send the numbers and the info about your hardware configuration to feedback@clickhouse.com
|
2020-03-20 10:10:48 +00:00
|
|
|
|
2021-09-19 20:05:54 +00:00
|
|
|
All the results are published here: https://clickhouse.com/benchmark/hardware/
|