db-benchmark joins on 100 million rows (c6id.4xlarge), November 2026 snapshot
Last verified:
DuckDB had the lowest first-run times on both copied join questions, with Polars next. The ClickHouse server and chDB took several times longer on these joins, and Spark completed only part of the join set in its latest batch. Join performance depends heavily on each engine's join algorithm defaults, which the benchmark does not tune.
Conflict of interest: DuckDB Labs maintains the benchmark and is the main commercial backer of DuckDB, one of the compared systems. Inclusion requires a PR approved by DuckDB Labs.
Results
| System | Metric | Value | Unit | Configuration / notes |
|---|---|---|---|---|
| DuckDB | join 'medium inner on int' first run | 1.112 | s | version 2.0.1, batch 2026-11-23, on_disk=False |
| DuckDB | join 'big inner on int' first run | 4.926 | s | version 2.0.1, batch 2026-11-23, on_disk=False |
| ClickHouse | join 'medium inner on int' first run | 13.037 | s | version 26.11.1.888, batch 2026-10-30, on_disk=TRUE |
| ClickHouse | join 'big inner on int' first run | 46.615 | s | version 26.11.1.888, batch 2026-10-30, on_disk=TRUE |
| Apache Spark (PySpark SQL) | join 'medium inner on int' first run | 34.942 | s | version 4.1.1, batch 2026-04-14, on_disk=False |
| Polars | join 'medium inner on int' first run | 3.645 | s | version 2.1.0, batch 2026-10-30, on_disk=FALSE |
| Polars | join 'big inner on int' first run | 17.325 | s | version 2.1.0, batch 2026-10-30, on_disk=FALSE |
| chDB (embedded ClickHouse) | join 'medium inner on int' first run | 9.301 | s | version 4.4.0, batch 2026-10-30, on_disk=TRUE |
| chDB (embedded ClickHouse) | join 'big inner on int' first run | 48.962 | s | version 4.4.0, batch 2026-10-30, on_disk=TRUE |
Values are copied exactly from the source; we do not compute rankings, ratios or derived figures. Full results: duckdblabs.github.io.
Workload
- Description
- Single-node join operations over a synthetic table, run as scripted questions in each tool's native API or SQL dialect.
- Dataset
- J1_1e8_NA_0_0: 1e8-row left table joined to small, medium and big right tables, no NAs, unsorted
- Queries
- 5
- Metrics
- join 'big inner on int' first run, join 'medium inner on int' first run
- Run dates
- Apr 14, 2026, Oct 30, 2026, Nov 23, 2026
Hardware
| Environment | AWS EC2 |
|---|---|
| Instance type | c6id.4xlarge |
| vCPUs | 16 |
| Memory | 32 GB |
| Storage | local NVMe instance storage |
| Cluster size | 1 |
Systems tested
- DuckDB 2.0.1 · single node, benchmark scripts as merged in repo; on_disk=False
- ClickHouse 26.11.1.888 · single node, benchmark scripts as merged in repo; on_disk=TRUE
- Apache Spark SQL 4.1.1 · single node, benchmark scripts as merged in repo; on_disk=False
Other systems in this benchmark
Systems without a DatabaseRadar profile, listed as named by the source.
- Polars 2.1.0 · single node, benchmark scripts as merged in repo; on_disk=FALSE
- chDB (embedded ClickHouse) 4.4.0 · single node, benchmark scripts as merged in repo; on_disk=TRUE
Methodology notes
Each question is timed twice in a fresh process per solution; we copy only the first-run time of selected questions exactly as recorded in time.csv. Solutions are re-run on request, so versions and batch dates differ between systems, and some engines answer from data loaded in memory while others read from disk (see on_disk). Spark runs through PySpark with its own session overhead. Spark's latest c6id.4xlarge batch has results for only some join questions; DataFusion has no result for this dataset on this machine.
Reproducible: yes, scripts and configuration are public. Raw data.
Data license
MPL-2.0
Repository LICENSE checked 2026-12-03: Mozilla Public License 2.0. Numbers copied verbatim from time.csv with attribution to DuckDB Labs db-benchmark.
All benchmarks · Benchmark policy
Sources
Last verified:
- github.com/duckdblabs/db-benchmark github.com
- github.com/duckdblabs/db-benchmark/blob/main/LICENSE github.com
- duckdblabs.github.io/db-benchmark duckdblabs.github.io
Found an error? See how to report a correction.