ClickhouseBenchmark
Why ClickHouse Cloud wins at real-time analytics
Summary
In CostBench, ClickHouse Cloud delivered 412×–1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery Capacity, and Redshift Serverless on a 113.2-billion-row stock-quote workload. The benchmark streamed the same data into all five systems while running analytical queries throughout ingestion, tracking summary freshness, preparation cost, query cost, and query runtime. ClickHouse Cloud prepared all 113.2 billion rows for $28.69, kept daily summaries in sync with raw data during inserts, and logged about $0.05 in query cost with 1.03 minutes of accumulated runtime. The lead comes from sorting and pre-aggregating incoming data in memory and writing sorted, compressed columnar parts to disk, so raw history and summaries advance together. Production examples include Tesla ingesting one billion rows per second, Cloudflare sub-two-second queries over 1.61 quadrillion events, and Artemis cutting an investigative lookup from 12 seconds to 200 milliseconds.
Context
This post concludes ClickHouse’s CostBench series; earlier parts covered methodology and individual comparisons with Snowflake, Databricks, BigQuery, and Redshift. It explains the ClickHouse Cloud architecture behind the benchmark results and includes production examples from Tesla, Cloudflare, Buildkite, and Artemis.
Approach / What changed
ClickHouse Cloud sorts incoming raw quotes by stock symbol and time while the data is in memory, uses an incremental materialized view to compute daily summaries sorted by symbol and day, and writes both as sorted, compressed columnar parts to disk, avoiding a separate write-and-reread cycle. Ingest and query capacity scale independently in ClickHouse Cloud.
Takeaways
ClickHouse Cloud was the only tested system whose daily summaries were query-ready as soon as its raw data; it updated pre-aggregations during inserts, while the other systems refreshed them asynchronously after raw data was written.
Preparing all 113.2 billion rows cost $28.69 in ClickHouse Cloud, versus about $79 in Snowflake, $243 in BigQuery Capacity, $522 in Redshift Serverless, and $696 in Databricks, because all preparation steps ran inside the same engine.
Artemis reduced one investigative lookup from 12 seconds to 200 milliseconds by extracting frequently queried fields through materialized views, and combining detection rules into shared scans let production batches of more than 100 rules execute in under a second.
FAQ
Why did ClickHouse Cloud have the lowest preparation cost in CostBench?
ClickHouse handled columnar storage, ordering, and pre-aggregation inside the same engine, with that work included in the ingest-service cost. Other tested stacks involved additional ingestion or maintenance services, often with separate charges.
What did the CostBench benchmark measure?
It streamed 113.2 billion stock-market quotes into ClickHouse Cloud, Snowflake, Databricks, BigQuery, and Redshift Serverless while running analytical queries throughout ingestion. It tracked summary freshness, preparation cost, query cost, and query runtime, and ClickHouse Cloud delivered the lowest preparation cost, query cost, and accumulated query runtime.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.