Skip to content

Conversation

@odidev
Copy link
Owner

@odidev odidev commented Dec 1, 2025

No description provided.

This tool measures **query throughput and latency**.

### Verify the benchmarking tool exists
Confirms that `clickhouse-benchmark` is installed and available on the system before running performance tests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Confirms that `clickhouse-benchmark` is installed and available on the system before running performance tests.
Confirm that `clickhouse-benchmark` is installed and available on the system before running performance tests.

```

### Prepare benchmark database and table
Creates a test database and table structure where sample data will be stored for benchmarking.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Creates a test database and table structure where sample data will be stored for benchmarking.
Create a test database and table structure where sample data will be stored for benchmarking.

exit;
```
### Load benchmark data
Inserts 1 million sample records into the table to simulate a realistic workload for testing query performance.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Inserts 1 million sample records into the table to simulate a realistic workload for testing query performance.
Insert 1 million sample records into the table to simulate a realistic workload for testing query performance.


**Verify:**

Checks that the data load was successful by counting the total number of rows in the table.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Checks that the data load was successful by counting the total number of rows in the table.
Check that the data load was successful by counting the total number of rows in the table.

```


### Benchmark aggregation query

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not in bold.



### Benchmark aggregation query
Tests the performance of grouping and aggregation operations, demonstrating analytical query efficiency.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Tests the performance of grouping and aggregation operations, demonstrating analytical query efficiency.
Test the performance of grouping and aggregation operations, demonstrating analytical query efficiency.

99.99% 0.008 sec.
```

### Benchmark concurrent read workload

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in bold.

```

### Benchmark concurrent read workload
Runs multiple queries at the same time to evaluate how well ClickHouse handles higher user load and parallel processing.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Runs multiple queries at the same time to evaluate how well ClickHouse handles higher user load and parallel processing.
Run multiple queries at the same time to evaluate how well ClickHouse handles higher user load and parallel processing.

```console
sudo systemctl status clickhouse-server
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This confirms that the ClickHouse server is running correctly under systemd and ready to accept connections.
Output:



### Verify ClickHouse is running
confirms that the ClickHouse server is running correctly under systemd and ready to accept connections.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Peak memory usage: 3.96 MiB.
```

**Verify row count:**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add one-liner spacing

| Read (High Concurrency) | Filtered COUNT | `COUNT(*) WHERE user_id % 10 = 0` | 20 | 8 | 99.72 | 99.72 M | 760.83 | 29 ms | 63 ms | 78 ms |
| Write | Bulk Insert | `INSERT SELECT … FROM numbers(500000)` | 5 | 4 | 20.94 | 10.47 M | 79.86 | 68 ms | 73 ms | 73 ms |

### ClickHouse benchmarking comparison on Arm64 and x86_64
Copy link

@RahulAggarwalPuresoftware RahulAggarwalPuresoftware Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't highlight results on x86. Simply write:

Benchmark comparison insights:

@odidev odidev force-pushed the clickhouse_LP branch 3 times, most recently from e19ef38 to 57a7ea3 Compare December 3, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants