db-benchmark group-by on 1 billion rows (c6id.metal), November 2026 snapshot
Last verified:
On the largest group-by dataset, DuckDB, ClickHouse, chDB, DataFusion and Polars all finished the simple low-cardinality aggregation in well under a second, while the high-cardinality question (grouping by id3) separated them more clearly. Spark took seconds to minutes on both questions, but its latest metal run is an older 4.0.0 batch. Only two of the ten group-by questions are copied here; the full report weighs all of them.
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 | groupby 'sum v1 by id1' first run | 0.094 | s | version 2.0.1, batch 2026-11-25, on_disk=False |
| DuckDB | groupby 'sum v1 mean v3 by id3' first run | 4.52 | s | version 2.0.1, batch 2026-11-25, on_disk=False |
| ClickHouse | groupby 'sum v1 by id1' first run | 0.326 | s | version 26.11.1.921, batch 2026-10-30, on_disk=TRUE |
| ClickHouse | groupby 'sum v1 mean v3 by id3' first run | 3.119 | s | version 26.11.1.921, batch 2026-10-30, on_disk=TRUE |
| Apache Spark (PySpark SQL) | groupby 'sum v1 by id1' first run | 3.952 | s | version 4.0.0, batch 2025-06-05, on_disk=True |
| Apache Spark (PySpark SQL) | groupby 'sum v1 mean v3 by id3' first run | 108.059 | s | version 4.0.0, batch 2025-06-05, on_disk=True |
| Polars | groupby 'sum v1 by id1' first run | 0.45 | s | version 2.1.0, batch 2026-11-02, on_disk=FALSE |
| Polars | groupby 'sum v1 mean v3 by id3' first run | 14.377 | s | version 2.1.0, batch 2026-11-02, on_disk=FALSE |
| Apache DataFusion | groupby 'sum v1 by id1' first run | 0.488 | s | version 55.0.0, batch 2026-11-02, on_disk=FALSE |
| Apache DataFusion | groupby 'sum v1 mean v3 by id3' first run | 5.203 | s | version 55.0.0, batch 2026-11-02, on_disk=FALSE |
| chDB (embedded ClickHouse) | groupby 'sum v1 by id1' first run | 0.28 | s | version 4.4.0, batch 2026-11-02, on_disk=TRUE |
| chDB (embedded ClickHouse) | groupby 'sum v1 mean v3 by id3' first run | 6.462 | s | version 4.4.0, batch 2026-11-02, 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 groupby operations over a synthetic table, run as scripted questions in each tool's native API or SQL dialect.
- Dataset
- G1_1e9_1e2_0_0: 1e9 rows (about 50 GB as CSV), 100 distinct values per id1 group key, no NAs, unsorted
- Queries
- 10
- Metrics
- groupby 'sum v1 by id1' first run, groupby 'sum v1 mean v3 by id3' first run
- Run dates
- Jun 5, 2025, Oct 30, 2026, Nov 2, 2026, Nov 25, 2026
Hardware
| Environment | AWS EC2 |
|---|---|
| Instance type | c6id.metal |
| vCPUs | 128 |
| Memory | 256 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.921 · single node, benchmark scripts as merged in repo; on_disk=TRUE
- Apache Spark SQL 4.0.0 · single node, benchmark scripts as merged in repo; on_disk=True
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
- Apache DataFusion 55.0.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. The Spark result on c6id.metal dates from 2025-06 while the other engines were re-run in October-November 2026.
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.