ClickHouse vs DuckDB: 18 s vs 25 s on the same machine, scored in five rounds
Server vs in-process, compared only with published numbers: ClickBench's result files and DuckDB Labs' db-benchmark. Where each one wins, why the winner changes with the machine, and what you get from clickhouse local and chDB.
On this page
- The arena
- Round 1: getting started (DuckDB)
- Round 2: the queries (split)
- Round 3: disk space (ClickHouse)
- Round 4: Parquet, no loading at all (DuckDB)
- Round 5: many users, many machines (ClickHouse)
- Bonus round: DuckDB Labs’ own benchmark (split)
- The twist: they’re growing into each other
- Which one to pick
- How these numbers were made
Same 100 million rows, same 43 queries, same cloud machine. In ClickBench’s published results of November 12, 2026, the warm runs of all 43 queries add up to 18.09 seconds for ClickHouse and 25.35 seconds for DuckDB. That’s a 1.4× gap. On the very first run of each query, with caches dropped, DuckDB is faster on 27 of the 43.
So “which one is faster?” doesn’t have one answer. This post scores the matchup in five rounds plus a bonus round, using only published measurements: ClickBench (maintained by ClickHouse) and db-benchmark (maintained by DuckDB Labs). No benchmarks were run for this post. The sums, win counts and ratios below are arithmetic on the published result files.
The arena
ClickBench uses one flat table of web analytics: “exactly 99'997'497 records” in 105 columns, plus 43 queries. Each query runs three times. The cold run is the first one, after caches are cleared. The warm (hot) run is the faster of the second and third. The reference machine is an AWS c6a.4xlarge (16 vCPUs, 32 GiB of memory). The results also include c6a.large (2 vCPUs, 4 GiB) and c6a.metal (192 vCPUs, 384 GiB). The README is honest about its limits: queries run one after another, with no concurrent workload, and its summary is “All Benchmarks Are Bastards Liars”.
The two engines run very differently:
- DuckDB is a library. Its docs say it “does not run as a separate process but is completely embedded within a host process”, and “there is no DBMS server software to install, update, and maintain”. In ClickBench, every query starts a new
duckdbCLI process against one file,hits.db. - ClickHouse is a server:
clickhouse-serverplusclickhouse-client, with the data in a MergeTree table.
Neither entry is tuned. Both engines are columnar and vectorized. If those words are new to you, the ClickHouse vs PostgreSQL post explains them.
Round 1: getting started (DuckDB)
ClickBench measures startup time: how long a cold system takes to answer. For a server, that runs from launching it to answering a check query. For an embedded engine, it runs from starting a process to the result of SELECT 1. It also times the data load.
| c6a.4xlarge, Nov 12, 2026 | DuckDB | ClickHouse |
|---|---|---|
| Startup (cold → first answer) | 0.33 s | 5.83 s |
| Loading 100 M rows | 111 s | 194 s |
DuckDB starts 17.7× faster and loads 1.75× faster. Round one goes to DuckDB.
Round 2: the queries (split)
| 43 queries, c6a.4xlarge | ClickHouse | DuckDB |
|---|---|---|
| Sum of warm runs | 18.09 s | 25.35 s |
| Warm runs won | 34 | 9 |
| Sum of cold runs | 104.44 s | 115.08 s |
| Cold runs won | 16 | 27 |
Warm runs go clearly to ClickHouse. Still, 28 of the 43 queries finish within 2× of each other. ClickHouse’s biggest win is one query, Q18 (GROUP BY UserID, SearchPhrase LIMIT 10): 0.012 s against 0.656 s, or 55×. DuckDB’s biggest wins are 1.5× (Q26 and Q33). No source we found explains the Q18 gap, so we won’t guess.
On cold runs it flips, at least query by query: DuckDB wins 27 of 43. ClickHouse’s cold total is still lower, because a few slow cold queries dominate the sum. Warm goes to ClickHouse and cold to DuckDB, so this round is half a point each.
Round 3: disk space (ClickHouse)
The same rows, each engine in its own format: ClickHouse 9.42 GB, DuckDB 20.45 GB, so ClickHouse is 2.17× smaller. The ClickHouse paper (PVLDB 2024) explains the trade-off it makes. ClickHouse is “optimized for append-only use cases”. Its blocks are compressed with “heavy-weight techniques like LZ4”, on the assumption “that I/O costs dwarf decompression costs”. The same paper describes DuckDB as “designed for OLAP queries mixed with occasional OLTP statements”. DuckDB therefore uses “light-weight compression methods such as order-preserving dictionaries or frame-of-reference to achieve good performance in hybrid workloads”. ClickHouse takes less than half the disk, so round three goes to ClickHouse.
Round 4: Parquet, no loading at all (DuckDB)
Both engines can query a Parquet file where it sits. DuckDB pushes projections and filters into the Parquet reader, and ClickHouse has its own Parquet reader. ClickBench has entries for this: the same single 14,779,976,446-byte hits.parquet, read in place, with a load time of zero.
| Parquet in place, Nov 10, 2026 | ClickHouse warm sum | DuckDB warm sum | warm wins (CH : DuckDB : tie) | cold wins (CH : DuckDB) |
|---|---|---|---|---|
| c6a.large (2 vCPU, 4 GiB) | 377.84 s | 249.13 s | 6 : 37 : 0 | 4 : 39 |
| c6a.4xlarge (16 vCPU, 32 GiB) | 27.80 s | 33.86 s | 28 : 14 : 1 | 5 : 38 |
| c6a.metal (192 vCPU, 384 GiB) | 12.11 s | 10.48 s | 26 : 16 : 1 | 6 : 37 |
On the standard machine ClickHouse wins again. On the small machine, where a 15 GB file meets 4 GiB of memory, DuckDB wins 37 of 43 warm runs and finishes 1.52× sooner overall. DuckDB’s tuning guide calls “support for larger-than-memory workloads” “a key strength”, backed by spilling to disk. On the biggest machine the totals favor DuckDB while ClickHouse still wins more queries. The machine you run on picks the winner. Round four goes to DuckDB.
Round 5: many users, many machines (ClickHouse)
DuckDB’s concurrency docs are clear. In read-write mode, “one process can both read and write to the database”. In read-only mode, “multiple processes can read from the database, but no processes can write”. Inside one process, DuckDB does support several writer threads.
ClickHouse is built for the opposite case. The paper lists “many simultaneous queries with an expectation of low latencies” among its design challenges, and ClickHouse “supports sharding and replication of tables across multiple cluster nodes”.
ClickBench has a concurrency test: 10 connections for 600 seconds. ClickHouse’s entry reports 1.728 queries per second. DuckDB’s entry skips the test on purpose. The harness says single-process engines must, because “each query forks a fresh full-machine process with no shared scheduler”. That isn’t a failure: there’s simply no shared server to connect to. Round five goes to ClickHouse, which makes the score 2½ : 2½.
Bonus round: DuckDB Labs’ own benchmark (split)
db-benchmark started at H2O.ai, which “stopped supporting the benchmark in 2021”. DuckDB Labs has maintained it since 2023. It runs group-bys and joins on data-science-sized tables. Below are sums of first-run times from its published time.csv (DuckDB 1.5.4, ClickHouse 26.7.1, July 2026) on a c6id.4xlarge with 16 cores and 32 GB:
| Task | DuckDB | ClickHouse |
|---|---|---|
| Group-by, 5 GB (10⁸ rows), 10 questions | 9.5 s | 21.5 s |
| Group-by, 50 GB (10⁹ rows), 10 questions | 388.7 s | 301.3 s |
| Join, 5 GB (10⁸ rows), 5 questions | 15.0 s | 96.1 s |
DuckDB sweeps the small data. At 50 GB on the 16-core machine, ClickHouse wins the group-by, even on DuckDB’s home benchmark. (On the 128-core c6id.metal, DuckDB leads all three, for example 32.9 s vs 64.5 s on the 50 GB group-by.) That’s half a point each.
Final score (editorial): 3 : 3.
The twist: they’re growing into each other
- ClickHouse without a server.
clickhouse locallets you “perform fast processing on local and remote files using SQL without having to install a full database server”, using “the same clickhouse binary that runs the ClickHouse server”. chDB is “an in-process SQL OLAP Engine powered by ClickHouse”, with bindings for Python, Go, Rust, Node.js and others. The ClickHouse paper says chDB was “inspired by DuckDB”. Its ClickBench warm total (Oct 11, 2026) is 18.61 s, against 18.09 s for the server. - DuckDB with a server. In May 2026 DuckDB announced Quack, a remote protocol so you can “run DuckDB in a client-server setup with multiple concurrent writers”. DuckDB 2.0.0 ships a polished version, listening only on localhost by default. The engine also runs inside Postgres as pg_duckdb.
- Same grandparent. Both papers credit MonetDB/X100 (CIDR 2005), the vectorized design from CWI in Amsterdam. DuckDB’s 2019 paper was written at CWI too.
Which one to pick
| You have | Pick |
|---|---|
| Data that fits on one machine, one user or one app, notebooks, CI jobs, Parquet files on a laptop | DuckDB: one file, zero servers |
| Dashboards for many users, constant inserts, data that outgrows one machine, replication | ClickHouse server or cloud |
| ClickHouse SQL and functions, but no server | clickhouse local or chDB |
Plenty of teams run both. A PostHog post (as reported by PostHog) describes ClickHouse powering “funnels, trends, retention, and paths over billions of events”, with DuckDB alongside it.
How these numbers were made
Every number in this post is a published measurement. ClickBench is maintained by ClickHouse, but every script and result file is public and anyone can submit. db-benchmark is maintained by DuckDB Labs. So each camp runs one of the two benchmarks, and each engine wins rounds on the other’s. We found no independent head-to-head with a full methodology and absolute numbers. Sums, win counts and ratios are arithmetic on the result files: ClickHouse and DuckDB from Nov 12, 2026, the Parquet entries from Nov 10, 2026, and chDB from Oct 11, 2026. The round scores are our editorial call. Nothing was benchmarked for this post.