---
title: "Building ClickCannon - a tool for benchmarking ClickHouse"
description: "ClickCannon is an open-source Go tool for benchmarking ClickHouse insert and query workloads, built to produce hardware sizing recommendations for ClickStack observability deployments."
url: "https://swe.quest/articles/building-clickcannon-a-tool-for-benchmarking-clickhouse-15503a1f117264f6"
canonical: "https://clickhouse.com/blog/building-clickcannon-a-tool-for-benchmark-clickhouse"
source: "ClickHouse"
published: "2026-06-11"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 16
tags: ["performance","go","analytics","observability","concurrency"]
---

# Building ClickCannon - a tool for benchmarking ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-06-11, 16 min read, Deep dive. Original: [https://clickhouse.com/blog/building-clickcannon-a-tool-for-benchmark-clickhouse](https://clickhouse.com/blog/building-clickcannon-a-tool-for-benchmark-clickhouse)

## Summary

ClickCannon is an open-source Go tool for benchmarking ClickHouse insert and query workloads, built to produce hardware sizing recommendations for ClickStack observability deployments. It replays real OpenTelemetry data stored as ZSTD-compressed Native format at a precisely controlled uncompressed throughput. A feedback-loop rate limiter combines a sliding window with a token-bucket gate. Independently scaled disk and insert worker pools exchange reusable ch-go blocks through Go channels, which avoids allocations. Block and connection retirement kept memory flat across 30-day runs, and configurable workflows with think times, time ranges and latency percentile targets simulate concurrent users querying while data arrives.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)

## Prerequisites

- ClickHouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Go channels and goroutines ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- OpenTelemetry data ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

ClickCannon, ClickHouse, ClickStack, ch-go, clickhouse-go, OpenTelemetry, ZSTD

## Related posts

- [How we made ClickStack 5x faster for ClickHouse observability](https://swe.quest/articles/how-we-made-clickstack-5x-faster-for-clickhouse-observability-ed934241e77977aa.md): ClickHouse · 2026-07-02 · Hard · 22 min read · Observability, Analytics & OLAP, Performance engineering, Query engines, Storage engines
  ClickStack's OpenTelemetry logs schema, inherited from the ClickHouse exporter for the OTel Collector, was reworked through a benchmark-driven process.
- [How Canva achieved 10x faster search and 70% lower costs with ClickHouse](https://swe.quest/articles/how-canva-achieved-10x-faster-search-and-70-lower-costs-with-clickhouse-40e415ef239059a0.md): ClickHouse · 2025-12-01 · Medium · 7 min read · Observability, Analytics & OLAP, Cost optimization, Performance engineering, Databases
  Canva moved tracing and logging (about 3 million spans and 3 million logs per second) onto a self-managed ClickHouse cluster of 5 shards × 3 replicas on Kubernetes.
- [Why OpenAI chose ClickHouse for petabyte-scale observability](https://swe.quest/articles/why-openai-chose-clickhouse-for-petabyte-scale-observability-dd57167d0fc8c4cb.md): ClickHouse · 2025-06-30 · Medium · 6 min read · Observability, Performance engineering, Analytics & OLAP, Scaling, Data structures
  OpenAI ingests petabytes of logs daily, growing over 20% monthly, into a ClickHouse cluster of 90 shards with two replicas each, fed by Fluent Bit agents.
- [How the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse](https://swe.quest/articles/how-the-d-e-shaw-group-powers-high-cardinality-observability-at-scale-with-b74a9887c2072ab0.md): ClickHouse · 2026-05-15 · Medium · 7 min read · Observability, Analytics & OLAP, Scaling, Capacity planning
  The D. E. Shaw group moved per-task resource metrics from its HPC grid, millions of high-cardinality time series keyed by unique task IDs, from an InfluxDB-protocol time-series platform to ClickHouse.
- [How Exabeam uses ClickHouse for scalable, searchable security analytics](https://swe.quest/articles/how-exabeam-uses-clickhouse-for-scalable-searchable-security-analytics-9b3f4c0a732d0875.md): ClickHouse · 2025-09-11 · Medium · 6 min read · Analytics & OLAP, Performance engineering, Threat detection, Data pipelines, Scaling
  Exabeam runs its security analytics platform on ClickHouse Cloud across 10 regions, ingesting up to 1.2M events/sec per region (80B+ daily, 3.5 PB raw compressed to 200 TiB), with compute-compute separation that isolates write, merge and read nodes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
