OLAPDBGet new results
Benchmarks

Real-time analytics, measured

99,997,497 rows of real web analytics data, 43 queries that look like the ones dashboards and product analytics run, the same scripts on every system. Each query runs three times; the first is the cold run, the best of the other two is the hot run.

Query latency

Score: for each query, (time + 10 ms) ÷ (fastest time in the group + 10 ms), then the geometric mean over 43 queries. 1.0 means fastest on every query.

self-hosted · c6a.4xlarge · hotlower is better
ClickHouse1.03×
DuckDB2.03×
StarRocks2.90×
managed services · hotlower is better
ClickHouse Cloud1.06×
Amazon Redshift2.77×
BigQuery4.89×
Databricks SQL5.16×
Snowflake5.66×
SystemConfigurationHot scoreCold score43 queries, hotLoad timeOn diskRun date
ClickHousec6a.4xlarge · 16 vCPU · 32 GiB1.031.7616.14 s195 s9.4 GB2026-11-07
DuckDBc6a.4xlarge · 16 vCPU · 32 GiB2.031.3126.25 s126 s20.5 GB2026-05-11
StarRocksc6a.4xlarge · 16 vCPU · 32 GiB2.904.9544.47 s489 s17.9 GB2026-09-07
SystemConfigurationHot score43 queries, hotLoad timeOn diskRun date
ClickHouse CloudClickHouse Cloud · 2 replicas × 64 GiB · AWS1.0611.03 s35 s10.3 GB2026-11-07
Amazon RedshiftRedshift Serverless2.7719.74 s1,889 s30.3 GB2022-07-29
BigQueryOn-demand · serverless4.8927.33 s777 s8.8 GB2025-10-28
Databricks SQLSQL warehouse · Medium5.1632.22 s53 s10.2 GB2025-11-13
SnowflakeMedium warehouse · Gen25.6660.32 s67 s13.0 GB2026-07-27

Seven queries up close

Hot-run time for individual ClickBench queries. The fastest time in each row is highlighted.

QueryClickHouse (c6a.4xl)ClickHouse CloudAmazon RedshiftBigQueryDatabricks SQLSnowflakeDuckDB (c6a.4xl)StarRocks (c6a.4xl)
Q1 · Full countSELECT COUNT(*) FROM hits;1 ms2 ms199 ms371 ms274 ms103 ms18 ms35 ms
Q5 · Distinct usersSELECT COUNT(DISTINCT UserID) FROM hits;227 ms200 ms302 ms556 ms596 ms1.37 s348 ms354 ms
Q13 · Top search phrasesSELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;345 ms256 ms343 ms581 ms659 ms1.01 s408 ms665 ms
Q21 · Substring scanSELECT COUNT(*) FROM hits WHERE URL LIKE '%google%';367 ms276 ms235 ms473 ms571 ms1.53 s711 ms906 ms
Q29 · Regex group-bySELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM hits WHERE Referer <> '' GROUP BY k HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25;1.52 s1.05 s799 ms1.03 s3.61 s13.19 s6.48 s9.71 s
Q34 · High-cardinality group-bySELECT URL, COUNT(*) AS c FROM hits GROUP BY URL ORDER BY c DESC LIMIT 10;1.67 s1.20 s783 ms1.35 s2.05 s5.05 s2.05 s6.05 s
Q43 · Dashboard time seriesSELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-14' AND EventDate <= '2013-07-15' AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT 10 OFFSET 1000;9 ms17 ms283 ms426 ms331 ms132 ms39 ms51 ms

Ingestion throughput

Rows per second for the one-time bulk load of the dataset, as each system’s ClickBench script performs it.

managed services · bulk loadhigher is better
ClickHouse Cloud2.87M/s
Databricks SQL1.89M/s
Snowflake1.49M/s
BigQuery0.13M/s
Amazon Redshift0.05M/s
self-hosted · c6a.4xlarge · bulk loadhigher is better
DuckDB0.79M/s
ClickHouse0.51M/s
StarRocks0.20M/s

ClickBench measures a single bulk load, not continuous ingestion. For streaming workloads the deciding factors are how quickly a new row becomes queryable and what that costs; see the real-time ingestion row of the comparison.

Compression

Bytes on disk after loading the same 100M rows, as reported by each system. Smaller means cheaper storage and less I/O per query.

data_size · all systemslower is better
BigQuery8.8 GB
ClickHouse9.4 GB
Databricks SQL10.2 GB
ClickHouse Cloud10.3 GB
Snowflake13.0 GB
StarRocks17.9 GB
DuckDB20.5 GB
Amazon Redshift30.3 GB

Concurrent queries

ClickBench’s concurrency test cycles through the query set from many clients at once and counts queries per second. Only runs with zero errors count.

c6a.metal192 vCPU
ClickHouse20.2 QPS
StarRocks6.8 QPS
c7a.metal-48xl192 vCPU
ClickHouse32.9 QPS
StarRocks13.5 QPS
c8g.metal-48xl192 vCPU
ClickHouse38.1 QPS
StarRocks14.0 QPS

DuckDB is a single-process engine and is not part of the concurrency test. The managed services have not published concurrency results to ClickBench.

Cost per 1,000 queries

Average hot-run time across the 43 queries × 1,000 × the hourly list price below, billed per second. A compute-only estimate; storage and egress are not included.

SystemPrice basis$/hour$ per 1,000 queriesvs ClickHouse
ClickHousec6a.4xlarge on-demand, AWS us-east-1: $0.612/h$0.61$0.0641.0×
DuckDBc6a.4xlarge on-demand, AWS us-east-1: $0.612/h$0.61$0.1041.6×
StarRocksc6a.4xlarge on-demand, AWS us-east-1: $0.612/h$0.61$0.1762.8×
SnowflakeMedium warehouse, 4 credits/h at $2.00/credit (Standard)$8.00$3.11748.9×
Databricks SQLMedium serverless SQL warehouse, 24 DBU/h at $0.70/DBU$16.80$3.49754.8×

ClickHouse, DuckDB and StarRocks are priced as the EC2 instance they ran on; Snowflake and Databricks at the list price of the warehouse size that ran the benchmark. Discounts, reserved capacity, Snowflake’s 60-second resume minimum and idle time are not modelled. BigQuery and Redshift Serverless bill by bytes scanned and RPU capacity, which ClickBench does not record, so they are left out. ClickHouse Cloud bills by compute and storage usage; check its pricing page for your tier.

Where ClickHouse is not first

An honest reference shows these too.

  • Cold runs on one machine: DuckDB scores 1.31 to ClickHouse’s 1.76 when caches are empty.
  • Bulk load on one machine: DuckDB loaded the dataset in 126 s; ClickHouse took 195 s.
  • Storage among managed services: BigQuery reported 8.8 GB, slightly under ClickHouse Cloud’s 10.3 GB.
  • Some single queries: Redshift Serverless (2022 run) is fastest on Q21, Q29 and Q34 in the table above, and BigQuery edges ClickHouse Cloud on Q29.

None of these changes the overall picture: across all 43 queries, ClickHouse has the best hot score in both groups by a wide margin. Explore every system and machine size on ClickBench, or read our methodology.