benchANT Homepage
benchANT Homepage
Database
Ranking

Same Schema, Same Queries, Half the Runtime: ClickHouse 25.12 vs. 26.8 on a TPC-DS-like Benchmark

Dr. Daniel Seybold · 18 November 2026

At Berlin Buzzwords 2026 we asked whether PostgreSQL is eating analytics too, and used ClickHouse Cloud as the columnar reference point. On our 10-query TPC-DS subset, ClickHouse 25.12 clearly led on the lighter aggregation queries, but it clearly lost Q03 to plain PostgreSQL and Q07 and Q26 to pg_duckdb — and was narrowly behind on Q19 and Q73. Those results are a snapshot of one version, and ClickHouse Cloud ships new releases regularly.

Five months and several releases later, we re-ran the same benchmark against ClickHouse Cloud 26.6 and 26.8. The ClickHouse version is the only change we deliberately made. The schema, queries, service size and benchmark configuration were kept the same, and nothing was tuned.

The result: the 1,000 query executions took 1,027 s on 25.12, 602 s on 26.6 and 519 s on 26.8. Total runtime roughly halved, and the geometric mean of the per-query average latency — the typical per-query speedup — improved by 1.89×. The three clear losses from Berlin Buzzwords improved the most, by 59–89%.

Benchmark setup

All benchmarks were run on the benchANT benchmarking platform; Table 1 summarises the tested configuration. Each version ran on a freshly created ClickHouse Cloud service, and the TPC-DS data set was loaded fresh each time. The 25.12 run is the one shown in the Berlin Buzzwords talk. The 26.6 and 26.8 runs were added on 28 October 2026.

Table 1: Tested benchmark configuration
SettingTested configuration
DBMSClickHouse Cloud on AWS, eu-central-1
Service size2 replicas, 16 GB RAM per replica, fixed size (min = max), idle scaling disabled
Versions25.12 (default channel, run 28 May 2026), 26.6 (default channel, run 28 Oct 2026), 26.8 (fast channel, run 28 Oct 2026)
Data setTPC-DS, scale factor 10 (10 GB), default TPC-DS schema
QueriesQ03, Q07, Q19, Q26, Q42, Q52, Q55, Q68, Q73, Q96 with default TPC-DS query text1
ParametersSubstitution parameters (dates, manufacturer, manager, demographics, cities, …) randomized per execution
Execution1 client thread; each query is executed 100 times back-to-back before the next query starts; 1,000 executions in total
Benchmark clientAWS c6i.4xlarge in the same region; YCSB-based benchANT OLAP workload with the ClickHouse Java client over HTTPS
MetricsClient-side latency per query: average, P95, P99, min, max

Disclaimer: this is the most naive way to run TPC-DS on ClickHouse. ClickHouse offers many ways to make these queries considerably faster. Despite that, we used the default TPC-DS schema and the default TPC-DS queries, and applied no ClickHouse-specific optimizations. There are no tailored sorting keys, partitioning, data-type adjustments, projections, materialized views, or skip indexes. Also, we kept all queries as they were and no settings were tweaked. That is deliberate: we wanted to see how far ClickHouse gets out of the box, and how much that out-of-the-box experience changes between versions. Because each version ran on a freshly created cluster, default settings that changed between versions apply as well.

All evaluations were performed with our benchANT benchmarking framework; hence, these are not official, audited TPC-DS results.

A few notes on interpreting the numbers: Latency is measured end-to-end at the client, so it includes the network round trip to ClickHouse Cloud. Because every query runs 100 times in a row, the first execution of each query runs against cold caches and the remaining 99 benefit from warm ones. This mostly shows up in the max latency, so our analysis focuses on average and P95. Each version was benchmarked in a single run on a single service, so run-to-run variance is not visible in these numbers. 26.8 was only available on ClickHouse Cloud's fast release channel at the time of the benchmark. Service size and profile were otherwise identical to the 25.12 and 26.6 services.

Results: two very different groups of queries

Figure 1 shows how average, P95 and P99 latency developed per query across the three versions, and Table 2 lists the exact numbers; the queries fall into two groups.

Latency per TPC-DS query across ClickHouse versions

Figure 1: Average, P95 and P99 latency per TPC-DS query for ClickHouse 25.12, 26.6 and 26.8. The shaded band spans min to P99. Each panel has its own y-scale.

Table 2: Average and P95 latency per TPC-DS query by ClickHouse version
Query25.12 avg26.6 avg26.8 avgΔ avg 25.12 → 26.825.12 P9526.6 P9526.8 P95
Q031.20 s0.15 s0.13 s−89%1.32 s0.17 s0.15 s
Q072.56 s1.18 s1.04 s−59%4.46 s1.27 s1.11 s
Q190.90 s0.55 s0.50 s−45%1.32 s0.70 s0.60 s
Q261.96 s0.52 s0.43 s−78%2.14 s0.62 s0.51 s
Q420.31 s0.30 s0.27 s−12%0.35 s0.40 s0.28 s
Q520.30 s0.32 s0.27 s−10%0.32 s0.41 s0.28 s
Q550.29 s0.25 s0.22 s−26%0.32 s0.40 s0.27 s
Q681.28 s1.28 s1.14 s−10%1.43 s1.41 s1.21 s
Q730.85 s0.87 s0.76 s−11%0.97 s0.94 s0.81 s
Q960.62 s0.60 s0.43 s−31%0.66 s0.62 s0.45 s

Figure 2 visualizes the P95 columns of Table 2 per query and version.

P95 latency per TPC-DS query for ClickHouse 25.12, 26.6 and 26.8

Figure 2: P95 latency per TPC-DS query by ClickHouse version (TPC-DS 10 GB, 1 thread, sequential, 100 executions per query; 25.12 and 26.6 on the default release channel, 26.8 on the fast channel).

Group 1: Q03, Q07, Q19 and Q26 took a big step between 25.12 and 26.6. All four are star joins with selective filters on their dimension tables. That alone does not set them apart from group 2, and we look at what does further below. Q03 went from 1.20 s to 0.15 s on average, an 8× improvement. Q26 improved by almost 4×. Q07 also became much more predictable. On 25.12, its executions finished in either around 1.0 s or around 4.4 s, which pushed P95 up to 4.46 s. On 26.6, all executions fall between 1.10 s and 1.83 s, and P95 drops to 1.27 s. 26.8 adds roughly another 10–18% on top.

Group 2: Q42, Q52, Q55, Q68, Q73 and Q96 changed little until 26.6, then ended up 10–31% faster than on 25.12 with 26.8. The averages of five of these queries barely moved between 25.12 and 26.6. Only Q55 improved, by 17%. At the same time the tails of the three lightest queries got wider: the P95 of Q42, Q52 and Q55 rose by 14–31% on 26.6, even though the averages of Q42 and Q52 stayed the same. 26.8 removes this regression: every query is faster on 26.8 than on 25.12, in average, P95 and P99. Figure 3 summarizes the relative changes.

Latency change per query vs. ClickHouse 25.12

Figure 3: Relative change of average, P95 and P99 latency per query compared to ClickHouse 25.12. Blue means faster, red means slower.

Connecting the release notes to the results

To relate the results to the engine evolution, we went through the ClickHouse changelog for every release from 25.12 to 26.8, focusing on what matters for this workload: comma-style star joins, selective dimension filters, and GROUP BY … ORDER BY … LIMIT. We did not cross-check any entry against query plans (EXPLAIN), so every mapping below is a hypothesis based on the query texts, the schema and the changelog. A verification remains future work. Two caveats apply: we only measured 25.12, 26.6 and 26.8, so we cannot attribute the improvements to individual releases between the ones we evaluated; and ClickHouse Cloud may run with defaults that differ from the open-source defaults. A good starting point is to compare the queries that improved most with those that barely moved; two comparisons of almost identical queries are particularly telling.

The Groundwork

25.12 made join reordering consider up to 10 tables instead of 1 (#89312) and let the join optimizer use column statistics by default (#89332); join runtime filters existed but were still off by default (#89710). 26.1 added more filter pushdown through joins (#85556), and the hash-join probe is now skipped when the build side is empty (#94062).

Q03 vs. Q42, Q52 and Q55: same tables, different filter placement

All four queries join store_sales (28.8 million rows) with date_dim and item. They differ mainly in where their selectivity sits:

  • Q42, Q52 and Q55 restrict date_dim to one month of one year. Since the sales cover five years, that alone leaves roughly 2% of the sales rows. They also filter item on i_manager_id, which matches about 1% of items.
  • Q03 restricts date_dim only to one month, but across all five years, which leaves roughly 8% of the sales rows. Its selective filter is on item.i_manufact_id, which matches about 0.1% of items.

On 25.12, Q03 took four times as long as the other three. Since 26.6, it has been the fastest of the four: 0.13 s on 26.8, compared with 0.22–0.27 s.

This is what join runtime filters, on by default since 26.2 (#89314), would predict: the build side of a join, typically a filtered dimension table, produces a set or Bloom filter on the join key that is applied while the fact table is scanned. PREWHERE optimization now runs after the runtime filters are placed, so they can be pushed into PREWHERE (#95838), and filter pushdown works across chains of INNER joins on equivalent columns (#96596). Without them, a dimension filter only reduces the fact rows once its join has been executed, so a weak date filter leaves many rows to carry through the joins.

The schema suggests why Q03 benefits even more than the other three. In our default load, store_sales is sorted by ss_item_sk, so the rows of the few matching items are clustered together. In addition, ss_item_sk is the only join key of store_sales that is not Nullable. That makes it the only key for which 26.6 can reuse the build side's direct-index hash table as the runtime filter (#105640). The direct-index hash table for dense Int32/Int64 keys itself arrived in 26.4 (#99275).

Q55 vs. Q19: same core, plus large dimensions

Q19 is essentially Q55, with the same tables and the same manager, month and year filters. On top, it joins customer (500,000 rows), customer_address (250,000 rows) and store, none of which carries a filter of its own. Up to 26.6, Q55 improved by 17% and Q19 by 39%. Q07 and Q26 also join a large dimension: customer_demographics, with 1.92 million rows, of which the gender, marital-status and education filters leave roughly 1 in 70. Our hypothesis is that these queries benefit in three ways:

  • runtime filters shrink the fact side before the expensive joins (on by default since 26.2, #89314);
  • the hash tables of the large dimensions may become cheaper, through the direct-index hash tables for dense integer keys (26.4, #99275);
  • the better join-order estimates of 26.6 matter more the more tables a query joins: transitive join predicates are on by default (#103724), and cardinality estimation improved — for example, toYear(date) now inherits the number of distinct values of date (#107757) and the cost model sees through row-preserving plan steps (#107229).

The queries that only improved with 26.8 have a different shape

Q68 and Q73 first aggregate the filtered sales by ticket number in a subquery, a high-cardinality GROUP BY, and only then join customer. Their cost is plausibly dominated by that aggregation. This fits the adaptive parallel GROUP BY algorithm that 26.8 enables by default (#111459), which targets high-cardinality grouping, the bounded-heap optimization for GROUP BY … ORDER BY … LIMIT (#96630), top-K dynamic filtering for ORDER BY … LIMIT on by default since 26.5 (#99537), and the 26.7 change that allows join reordering across subqueries that wrap joins (#98533). Q42, Q52 and Q55 were already cheap and mostly shed the P95 regression of 26.6.

Every query joins date_dim or time_dim through a Nullable(Int64) foreign key

In the default schema, every fact-table foreign key except the item key is Nullable(Int64), while every dimension key is a plain Int64. 26.8 ships two changes for exactly this pairing: the direct-index hash table can now serve as a runtime filter when the probe key is Nullable and the build key is not (#111244), and WHERE equalities between such types are now merged into the join condition (#112630). That would fit the observation that 26.8 made every query 9–28% faster compared to 26.6, including those that had not moved before. The Nullable pairing cannot be the whole story, though: ClickHouse's own Versions Benchmark loads TPC-DS into non-Nullable columns and still shows 26.8 faster than 26.6.2 Other general-purpose changes may add to this: compact 8-byte row references in hash joins (26.7, #107189 which result in about 12% median and 15% less peak memory on ClickHouse's own join benchmarks), the PREWHERE condition-ordering fix in 26.8 (#110695), software prefetching in the hash-join probe (26.5, #102444), the AVX2 default build (26.6, #105019), and first-execution runtime statistics that can switch later runs to parallel_hash (26.7, #108125). The most notable is probably statistics being materialized at insert time again in 26.8 for tables up to 25 GiB (#109454): 26.4 had stopped building statistics at insert and built them only during merges (#101275), so on 26.6 the freshly loaded tables likely had no statistics yet, while on 26.8 they had them from the start. Our services were created and loaded right before each benchmark, and every table of a 10 GB data set stays below the 25 GiB threshold.

Two other factors could also contribute. The 25.12 and 26.x runs are five months apart, and the cloud infrastructure underneath may have changed in that time. In addition, 26.8 ran on the fast release channel. The quickest way to test the main hypothesis is to run Q03, Q07, Q19 and Q26 on 26.8 with enable_join_runtime_filters = 0, and once with compatibility = '25.12'. If their latencies jump back towards the 25.12 numbers, the runtime filters are the main driver. Comparing EXPLAIN output between 25.12 and 26.8 would additionally show which of the changes cited above actually appear in our query plans.

A Look Back at Berlin Buzzwords

How would the comparison from the talk look with today's ClickHouse? Table 3 puts the P95 latencies from the talk next to ClickHouse 26.8. One caveat applies: PostgreSQL 17 and pg_duckdb 1.1.1 ran on a single m7i.2xlarge instance (8 vCPU, 32 GB RAM) in May 2026 and were not re-run, while ClickHouse ran as a 2 × 16 GB Cloud service. Read this as an indication, not a head-to-head benchmark.

Table 3: P95 latency per TPC-DS query — PostgreSQL 17 and PG 17 + pg_duckdb (May 2026) vs. ClickHouse 25.12 and 26.8
QueryPostgreSQL 17PG 17 + pg_duckdbClickHouse 25.12ClickHouse 26.8
Q030.13 s1.99 s1.32 s0.15 s
Q073.92 s1.44 s4.46 s1.11 s
Q191.17 s1.10 s1.32 s0.60 s
Q262.25 s0.96 s2.14 s0.51 s
Q420.77 s0.86 s0.35 s0.28 s
Q520.76 s0.93 s0.32 s0.28 s
Q5510.51 s0.86 s0.32 s0.27 s
Q681.38 s1.31 s1.43 s1.21 s
Q731.04 s0.93 s0.97 s0.81 s
Q961.10 s2.45 s0.66 s0.45 s

With 26.8, ClickHouse has the lowest P95 on 9 of the 10 queries. The one exception is Q03: index-backed plain PostgreSQL still answers it slightly faster (0.13 s vs. 0.15 s). In May, ClickHouse was about 10× slower on this query.

Summary and outlook

Without changing a single setting, the schema or the queries, ClickHouse Cloud completed our naive TPC-DS benchmark in roughly half the time on 26.8 compared to 25.12. Most of the gain comes from star joins with selective dimension filters, where the join runtime filters and join-planning work in the 26.x releases fit the observed speedups well. 26.8 then added a broad 9–28% improvement across all queries and removed the P95 regressions we saw on 26.6 for the lightest queries.

For practitioners, the takeaway is less about this particular benchmark and more about how quickly the results move. A benchmark of a fast-moving DBaaS is a snapshot. Five months were enough to turn three clear losses into one narrow loss and two clear wins. If a version comparison or a technology decision depends on such numbers, benchmark the version you will actually run, and repeat the measurement after or even before upgrades.

Next, we plan to attribute the gains to specific optimizations using ClickHouse's compatibility setting, look at larger scale factors and concurrent workloads, and compare the naive setup with a ClickHouse-optimized schema.

ClickHouse deserves credit for tracking performance release by release in the open. Their Versions Benchmark shows the same direction on TPC-DS: relative query time falls from ×4.83 on 25.12 to ×1.53 on 26.6 and ×1.05 on 26.8 (hot runs, as of November 2026). Its numbers are not directly comparable to ours. It runs all 99 queries on a self-managed single server at scale factor 32, with the client on the same machine, which likely also explains why the gains look larger there.2 Our measurements complement it from the user's side, for ten queries on ClickHouse Cloud at scale factor 10: end-to-end latency at the client, including the network, and per-query tails (P95/P99).

All raw results, benchmark configurations and analysis scripts are available on GitHub.3 The Berlin Buzzwords material, including the PostgreSQL and pg_duckdb results, is available here.

References

1: In the Berlin Buzzwords material, this query was labeled Q56. The executed query text is TPC-DS Q55, which we use here.
2: ClickHouse's Versions Benchmark runs every release in its own Docker container on a single EC2 virtual machine (c7a.4xlarge by default) with the client on the same machine, so no network round trip is included. TPC-DS is loaded at scale factor 32, with Decimal columns converted to Float64 and NULLs loaded as the type's default values into non-Nullable columns. Each query runs six times, one cold and five hot. Details and scripts: ClickBench/versions.
3: In the raw data, queries are identified by benchANT-internal IDs: query16 = Q03, query17 = Q07, query18 = Q19, query19 = Q42, query20 = Q52, query21 = Q55, query22 = Q26, query23 = Q68, query24 = Q73, query25 = Q96. Each 0_run.txt also logs the full text of every loaded query, including its TPC-DS query number, so the mapping can be checked there.