db-benchmark group-by on 100 million rows (c6id.4xlarge), November 2026 snapshot
Last verified:
On the mid-size dataset and a 16-vCPU machine, all six engines answered the simple aggregation quickly, with DuckDB recording the lowest first-run time for that question. On the high-cardinality question DuckDB and DataFusion were close, with chDB, ClickHouse and Polars in the next band and Spark slowest. The gap between engines is narrower than at 50 GB.
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.062 | s | version 2.0.1, batch 2026-11-23, on_disk=False |
| DuckDB | groupby 'sum v1 mean v3 by id3' first run | 1.154 | s | version 2.0.1, batch 2026-11-23, on_disk=False |
| ClickHouse | groupby 'sum v1 by id1' first run | 0.262 | s | version 26.11.1.888, batch 2026-10-30, on_disk=TRUE |
| ClickHouse | groupby 'sum v1 mean v3 by id3' first run | 1.853 | s | version 26.11.1.888, batch 2026-10-30, on_disk=TRUE |
| Apache Spark (PySpark SQL) | groupby 'sum v1 by id1' first run | 2.683 | s | version 4.1.1, batch 2026-04-14, on_disk=False |
| Apache Spark (PySpark SQL) | groupby 'sum v1 mean v3 by id3' first run | 9.404 | s | version 4.1.1, batch 2026-04-14, on_disk=False |
| Polars | groupby 'sum v1 by id1' first run | 0.156 | s | version 2.1.0, batch 2026-10-30, on_disk=FALSE |
| Polars | groupby 'sum v1 mean v3 by id3' first run | 2.049 | s | version 2.1.0, batch 2026-10-30, on_disk=FALSE |
| Apache DataFusion | groupby 'sum v1 by id1' first run | 0.251 | s | version 55.0.0, batch 2026-11-02, on_disk=FALSE |
| Apache DataFusion | groupby 'sum v1 mean v3 by id3' first run | 1.143 | s | version 55.0.0, batch 2026-11-02, on_disk=FALSE |
| chDB (embedded ClickHouse) | groupby 'sum v1 by id1' first run | 0.169 | s | version 4.4.0, batch 2026-10-30, on_disk=TRUE |
| chDB (embedded ClickHouse) | groupby 'sum v1 mean v3 by id3' first run | 1.701 | 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 groupby operations over a synthetic table, run as scripted questions in each tool's native API or SQL dialect.
- Dataset
- G1_1e8_1e2_0_0: 1e8 rows (about 5 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
- Apr 14, 2026, Oct 30, 2026, Nov 2, 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
- 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.
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.