Skip to content

fix: gc StringView/BinaryView arrays before spilling to prevent write amplification#21325

Open
damahua wants to merge 2 commits intoapache:mainfrom
damahua:gc-view-arrays-spill
Open

fix: gc StringView/BinaryView arrays before spilling to prevent write amplification#21325
damahua wants to merge 2 commits intoapache:mainfrom
damahua:gc-view-arrays-spill

Conversation

@damahua
Copy link
Copy Markdown

@damahua damahua commented Apr 2, 2026

Which issue does this PR close?

Related to #19444 (sort spill StringView gc) and #20500 (repartition StringView gc). This PR extends the same fix to hash aggregation and sort-merge join spill paths, and adds BinaryViewArray support to the sort operator.

Rationale

After operations like take or slice, StringViewArray and BinaryViewArray retain shared references to all original data buffers. When these batches are written to spill files individually, the IPC writer must include every referenced buffer for every batch, causing massive write amplification.

The sort operator already had a fix for this (organize_stringview_arrays in sort.rs), but the hash aggregation and sort-merge join spill paths were missing it. Additionally, the sort operator's fix only handled StringViewArray, not BinaryViewArray.

Hash aggregation spill path

In row_hash.rs, IncrementalSortIterator produces output chunks via take_record_batch. Each chunk shares the same StringView data buffers as the parent emitted batch. Without gc(), spilling N chunks writes N copies of all shared buffers.

Sort-merge join spill path

In bitwise_stream.rs, inner_key_buffer contains sliced batches that share StringView data buffers with the original unsliced batches.

Changes

  1. New gc_view_arrays() utility in spill/mod.rs — compacts both StringViewArray and BinaryViewArray in a RecordBatch, returning the batch unchanged (no allocation) when no view-type columns exist
  2. Hash aggregation spill (row_hash.rs) — gc each IncrementalSortIterator output batch before writing to the spill file
  3. Sort-merge join spill (bitwise_stream.rs) — gc sliced inner_key_buffer batches before spilling
  4. Sort operator (sort.rs) — extended existing organize_stringview_arrays to also handle BinaryViewArray

A/B Benchmark Results

Workload: SELECT group_key, COUNT(*), SUM(value) FROM t GROUP BY group_key

  • 100,000 rows, 50,000 unique groups (high cardinality → forces spilling)
  • group_key: Utf8View (StringViewArray) with 50+ byte non-inline strings
  • Memory pool: 20 MB (FairSpillPool), single partition, batch_size=8192
  • Same source commit, only gc patch differs. N=3 runs, deterministic data (0 variance).
Metric Baseline (no gc) With gc Change
Spilled bytes 39.50 MB 7.90 MB -80.0%
Output bytes 103.3 MB 35.5 MB -65.6%
Query time 321 ± 11 ms 324 ± 9 ms ~same
Peak memory 19.82 MB 19.82 MB same
Spill count 2 2 same

With a tighter 8 MB pool: baseline OOMs (ResourcesExhausted: Failed to allocate additional 10.4 MB for GroupedHashAggregateStream) because inflated StringView buffers cause the sort memory estimate to exceed the pool. Optimized completes successfully (5 spills, 20.9 MB spilled).

Tests

  • All 1,299 existing datafusion-physical-plan lib tests pass (1 pre-existing zstd feature failure)
  • All 29 memory_limit integration tests pass
  • All 56 sort_merge_join tests pass
  • Added 4 new tests:
    • test_gc_view_arrays_reduces_spill_size — verifies gc compacts taken StringView/BinaryView batches
    • test_gc_view_arrays_write_amplification — demonstrates 8.5× write amplification without gc
    • test_gc_view_arrays_noop_for_non_view_types — verifies no overhead for non-view types
    • bench_stringview_aggregate_spill — end-to-end benchmark with EXPLAIN ANALYZE metrics

@github-actions github-actions bot added core Core DataFusion crate physical-plan Changes to the physical-plan crate labels Apr 2, 2026
damahua and others added 2 commits April 14, 2026 17:41
… amplification

After operations like `take` or `interleave`, view-type arrays retain
shared references to large original data buffers. When these batches are
written to spill files individually, the IPC writer duplicates all
referenced buffers for every batch — measured at 8.5× write amplification
with 10 chunks of 1000 rows from a 10,000-row StringView dataset.

Changes:
- Add `gc_view_arrays()` utility in spill/mod.rs that compacts both
  StringViewArray and BinaryViewArray in a RecordBatch
- Apply gc to hash aggregation spill path (IncrementalSortIterator
  output chunks share parent batch buffers via take_record_batch)
- Apply gc to sort-merge join bitwise_stream spill path (inner_key_buffer
  contains sliced batches sharing original batch buffers)
- Extend sort operator's organize_stringview_arrays to also handle
  BinaryViewArray (was previously StringView-only)

The sort operator already had StringView gc (organize_stringview_arrays),
but the hash aggregation and sort-merge join spill paths were missing it.
This is the same class of bug fixed by PR apache#19444 for sort spilling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…B test

Adds a targeted benchmark that exercises the hash aggregation spill path
with StringViewArray columns (Utf8View, non-inline 50+ byte strings).
Uses EXPLAIN ANALYZE to capture spill_count and spilled_bytes metrics.

A/B results (20 MB pool, 100K rows, 50K groups, N=3):
  Baseline: 39.50 MB spilled (5× write amplification from shared buffers)
  Optimized: 7.90 MB spilled (80% reduction)
  Query time: unchanged (~320 ms)

With 8 MB pool: baseline OOMs during sort reservation, optimized succeeds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adriangb adriangb force-pushed the gc-view-arrays-spill branch from 614ad8e to 4cff4e7 Compare April 14, 2026 22:41
Copy link
Copy Markdown
Contributor

@adriangb adriangb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good! Left some nits. I'm especially unsure about the shape of the benchmark. Also needs some linting fixes.

mean_spill / 1024.0 / 1024.0,
stddev_spill / 1024.0 / 1024.0,
);
eprintln!("Individual spill bytes: {:?}", spill_bytes_vec);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we make assertions on the sizes (i.e. if all we do is print them out) we won't catch regressions.

Do the numbers change? If not we could make it an SLT test.

///
/// Returns the batch unchanged (no allocation) when it contains no view-type
/// columns.
pub fn gc_view_arrays(batch: &RecordBatch) -> Result<RecordBatch> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this return Option<RecordBatch> to indicate if no work was done? Then it could be used from organize_stringview_arrays

@@ -0,0 +1,295 @@
// Licensed to the Apache Software Foundation (ASF) under one
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should commit this as it's own PR so that it shows the improvement

@adriangb
Copy link
Copy Markdown
Contributor

run benchmarks

env:
  DATAFUSION_RUNTIME_MEMORY_LIMIT: 500M

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4247718258-1264-zhdq5 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing gc-view-arrays-spill (4cff4e7) to 2818abb (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4247718258-1262-w4sw8 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing gc-view-arrays-spill (4cff4e7) to 2818abb (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4247718258-1263-7d8zq 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing gc-view-arrays-spill (4cff4e7) to 2818abb (merge-base) diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and gc-view-arrays-spill
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                       HEAD ┃                       gc-view-arrays-spill ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │                6.75 / 7.22 ±0.81 / 8.84 ms │                6.67 / 7.13 ±0.78 / 8.68 ms │     no change │
│ QQuery 2  │          144.17 / 144.88 ±0.63 / 146.06 ms │          144.41 / 146.17 ±1.14 / 147.57 ms │     no change │
│ QQuery 3  │          113.30 / 115.54 ±1.36 / 116.93 ms │          113.05 / 113.92 ±1.04 / 115.96 ms │     no change │
│ QQuery 4  │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 5  │          173.36 / 176.08 ±3.44 / 182.70 ms │          169.94 / 172.43 ±1.35 / 173.64 ms │     no change │
│ QQuery 6  │         822.87 / 852.49 ±15.15 / 863.46 ms │         816.89 / 832.71 ±10.03 / 847.22 ms │     no change │
│ QQuery 7  │          342.87 / 346.36 ±2.05 / 349.21 ms │          336.26 / 341.72 ±3.19 / 346.21 ms │     no change │
│ QQuery 8  │          116.81 / 118.11 ±1.52 / 120.96 ms │          115.90 / 117.32 ±0.88 / 118.38 ms │     no change │
│ QQuery 9  │          102.26 / 105.09 ±2.85 / 109.15 ms │          100.95 / 103.98 ±2.54 / 107.18 ms │     no change │
│ QQuery 10 │          108.09 / 108.72 ±0.43 / 109.21 ms │          105.16 / 105.88 ±0.65 / 107.05 ms │     no change │
│ QQuery 11 │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 12 │             44.85 / 46.31 ±1.07 / 47.77 ms │             43.70 / 44.62 ±0.92 / 45.76 ms │     no change │
│ QQuery 13 │          396.05 / 398.15 ±1.89 / 400.96 ms │          394.38 / 397.34 ±1.99 / 399.42 ms │     no change │
│ QQuery 14 │         987.96 / 996.72 ±7.62 / 1007.92 ms │        989.57 / 1000.06 ±7.74 / 1012.58 ms │     no change │
│ QQuery 15 │             15.95 / 17.15 ±1.48 / 20.03 ms │             15.08 / 16.46 ±1.05 / 17.94 ms │     no change │
│ QQuery 16 │                7.12 / 7.41 ±0.30 / 7.87 ms │                7.07 / 7.38 ±0.33 / 7.96 ms │     no change │
│ QQuery 17 │          228.52 / 229.37 ±0.85 / 230.85 ms │          228.05 / 228.56 ±0.34 / 228.89 ms │     no change │
│ QQuery 18 │          126.33 / 127.87 ±0.90 / 128.86 ms │          125.62 / 126.95 ±0.81 / 127.97 ms │     no change │
│ QQuery 19 │          154.26 / 155.72 ±1.36 / 157.81 ms │          152.67 / 154.93 ±1.13 / 155.57 ms │     no change │
│ QQuery 20 │             13.29 / 14.22 ±0.54 / 14.80 ms │             13.35 / 14.05 ±0.59 / 15.13 ms │     no change │
│ QQuery 21 │             19.19 / 19.66 ±0.27 / 19.98 ms │             18.76 / 19.42 ±0.60 / 20.50 ms │     no change │
│ QQuery 22 │          488.14 / 492.43 ±2.66 / 495.48 ms │          483.30 / 486.89 ±2.06 / 489.23 ms │     no change │
│ QQuery 23 │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 24 │        381.19 / 436.08 ±106.09 / 648.22 ms │         379.21 / 395.65 ±28.07 / 451.73 ms │ +1.10x faster │
│ QQuery 25 │          339.28 / 340.47 ±0.73 / 341.23 ms │          340.44 / 341.77 ±0.88 / 343.16 ms │     no change │
│ QQuery 26 │             81.07 / 82.66 ±1.75 / 85.79 ms │             81.00 / 84.41 ±3.51 / 90.66 ms │     no change │
│ QQuery 27 │                6.94 / 7.54 ±0.72 / 8.44 ms │                7.25 / 7.49 ±0.29 / 8.05 ms │     no change │
│ QQuery 28 │          149.04 / 150.08 ±1.10 / 151.69 ms │         148.19 / 159.38 ±18.24 / 195.69 ms │  1.06x slower │
│ QQuery 29 │          280.57 / 282.26 ±1.55 / 284.31 ms │          281.47 / 283.20 ±1.21 / 284.59 ms │     no change │
│ QQuery 30 │             43.22 / 45.88 ±2.06 / 48.37 ms │             42.94 / 45.06 ±1.59 / 47.60 ms │     no change │
│ QQuery 31 │          169.26 / 170.95 ±1.76 / 173.64 ms │          168.12 / 170.93 ±1.90 / 174.06 ms │     no change │
│ QQuery 32 │             57.10 / 57.56 ±0.59 / 58.65 ms │             56.39 / 57.36 ±1.04 / 59.25 ms │     no change │
│ QQuery 33 │          139.87 / 142.43 ±2.01 / 144.75 ms │          141.58 / 142.42 ±0.85 / 144.02 ms │     no change │
│ QQuery 34 │                7.03 / 7.23 ±0.21 / 7.64 ms │                6.86 / 7.48 ±0.48 / 8.00 ms │     no change │
│ QQuery 35 │          107.24 / 108.92 ±1.88 / 111.55 ms │          104.86 / 106.79 ±1.40 / 108.93 ms │     no change │
│ QQuery 36 │                6.69 / 6.96 ±0.21 / 7.33 ms │                6.61 / 6.92 ±0.22 / 7.25 ms │     no change │
│ QQuery 37 │               8.33 / 9.06 ±0.57 / 10.06 ms │                8.17 / 8.74 ±0.57 / 9.64 ms │     no change │
│ QQuery 38 │             84.91 / 86.60 ±1.65 / 88.72 ms │             83.44 / 86.56 ±3.74 / 93.64 ms │     no change │
│ QQuery 39 │          122.41 / 125.19 ±1.68 / 127.36 ms │          122.87 / 125.96 ±1.99 / 127.99 ms │     no change │
│ QQuery 40 │          108.99 / 113.04 ±5.62 / 124.05 ms │          110.43 / 115.12 ±4.73 / 123.37 ms │     no change │
│ QQuery 41 │             14.28 / 14.89 ±0.51 / 15.57 ms │             14.06 / 14.62 ±0.46 / 15.39 ms │     no change │
│ QQuery 42 │          108.51 / 109.45 ±0.74 / 110.76 ms │          107.52 / 108.86 ±1.13 / 110.44 ms │     no change │
│ QQuery 43 │                6.11 / 6.55 ±0.65 / 7.84 ms │                6.34 / 6.45 ±0.12 / 6.68 ms │     no change │
│ QQuery 44 │             11.60 / 12.03 ±0.28 / 12.42 ms │             11.71 / 12.96 ±1.26 / 15.14 ms │  1.08x slower │
│ QQuery 45 │             50.88 / 51.80 ±0.67 / 52.75 ms │             50.81 / 51.51 ±0.73 / 52.80 ms │     no change │
│ QQuery 46 │                8.53 / 8.76 ±0.21 / 9.10 ms │                8.77 / 9.00 ±0.16 / 9.23 ms │     no change │
│ QQuery 47 │          698.93 / 703.89 ±4.15 / 708.71 ms │          697.28 / 704.72 ±6.79 / 713.14 ms │     no change │
│ QQuery 48 │          284.08 / 289.97 ±3.56 / 294.67 ms │          285.15 / 290.36 ±3.15 / 293.98 ms │     no change │
│ QQuery 49 │          250.73 / 254.13 ±2.76 / 257.52 ms │          254.06 / 255.72 ±1.40 / 258.23 ms │     no change │
│ QQuery 50 │          218.09 / 223.85 ±3.84 / 228.91 ms │          218.39 / 222.57 ±3.39 / 228.32 ms │     no change │
│ QQuery 51 │          180.04 / 183.12 ±1.71 / 185.15 ms │          179.78 / 182.70 ±1.69 / 184.19 ms │     no change │
│ QQuery 52 │          107.60 / 107.97 ±0.47 / 108.90 ms │          106.97 / 108.31 ±1.56 / 111.33 ms │     no change │
│ QQuery 53 │          101.55 / 102.71 ±0.72 / 103.69 ms │          101.41 / 102.45 ±0.68 / 103.30 ms │     no change │
│ QQuery 54 │          145.51 / 147.28 ±1.78 / 149.69 ms │          144.98 / 146.19 ±1.27 / 148.57 ms │     no change │
│ QQuery 55 │          105.97 / 107.09 ±1.26 / 108.87 ms │          106.27 / 108.13 ±1.09 / 109.27 ms │     no change │
│ QQuery 56 │          140.03 / 142.00 ±1.12 / 143.38 ms │          139.81 / 141.82 ±1.40 / 143.77 ms │     no change │
│ QQuery 57 │          173.52 / 174.90 ±1.33 / 176.60 ms │          172.17 / 174.62 ±1.37 / 176.02 ms │     no change │
│ QQuery 58 │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 59 │          195.83 / 197.87 ±2.36 / 202.38 ms │          196.72 / 199.85 ±4.59 / 208.95 ms │     no change │
│ QQuery 60 │          142.62 / 145.02 ±1.30 / 146.35 ms │          143.17 / 144.21 ±0.79 / 145.40 ms │     no change │
│ QQuery 61 │             13.12 / 13.43 ±0.39 / 14.16 ms │             13.04 / 13.42 ±0.33 / 13.90 ms │     no change │
│ QQuery 62 │         864.58 / 887.12 ±26.81 / 928.69 ms │         858.57 / 874.40 ±19.80 / 912.00 ms │     no change │
│ QQuery 63 │          103.48 / 105.14 ±1.10 / 106.91 ms │          102.87 / 104.82 ±2.05 / 108.59 ms │     no change │
│ QQuery 64 │          673.19 / 679.85 ±6.16 / 687.81 ms │          678.71 / 681.53 ±1.68 / 683.49 ms │     no change │
│ QQuery 65 │          247.29 / 250.51 ±2.53 / 253.50 ms │          243.71 / 245.40 ±1.36 / 247.22 ms │     no change │
│ QQuery 66 │          244.18 / 252.84 ±6.59 / 264.39 ms │         228.35 / 248.73 ±16.68 / 275.72 ms │     no change │
│ QQuery 67 │        693.25 / 846.43 ±109.77 / 957.84 ms │         706.01 / 754.21 ±35.76 / 795.63 ms │ +1.12x faster │
│ QQuery 68 │              9.65 / 10.16 ±0.29 / 10.55 ms │              8.69 / 10.05 ±1.10 / 11.34 ms │     no change │
│ QQuery 69 │           99.47 / 103.26 ±2.85 / 106.63 ms │          101.89 / 103.62 ±1.07 / 104.89 ms │     no change │
│ QQuery 70 │         332.24 / 341.34 ±10.78 / 361.97 ms │          329.00 / 339.63 ±9.06 / 356.43 ms │     no change │
│ QQuery 71 │          132.77 / 135.55 ±2.46 / 138.92 ms │          133.67 / 136.06 ±2.02 / 139.39 ms │     no change │
│ QQuery 72 │ 33817.45 / 36747.03 ±2222.18 / 39359.44 ms │ 31505.68 / 34336.53 ±2177.58 / 37621.62 ms │ +1.07x faster │
│ QQuery 73 │                6.65 / 7.56 ±1.07 / 9.41 ms │                6.60 / 7.48 ±0.93 / 9.09 ms │     no change │
│ QQuery 74 │          540.54 / 544.64 ±2.96 / 549.14 ms │          535.84 / 540.52 ±3.28 / 546.01 ms │     no change │
│ QQuery 75 │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 76 │          131.06 / 133.38 ±1.89 / 136.76 ms │          131.75 / 133.22 ±1.28 / 134.94 ms │     no change │
│ QQuery 77 │          187.13 / 189.50 ±1.71 / 192.40 ms │          189.45 / 191.41 ±1.58 / 194.25 ms │     no change │
│ QQuery 78 │                                       FAIL │                                       FAIL │  incomparable │
│ QQuery 79 │          226.91 / 230.10 ±1.85 / 232.67 ms │          229.95 / 232.98 ±1.95 / 235.94 ms │     no change │
│ QQuery 80 │          322.44 / 324.29 ±1.96 / 327.37 ms │          323.76 / 325.46 ±1.19 / 327.29 ms │     no change │
│ QQuery 81 │             26.83 / 28.63 ±1.51 / 31.42 ms │             25.78 / 27.25 ±1.02 / 28.87 ms │     no change │
│ QQuery 82 │          197.20 / 200.50 ±2.75 / 205.29 ms │          197.68 / 199.53 ±1.78 / 202.90 ms │     no change │
│ QQuery 83 │             38.36 / 39.58 ±0.93 / 40.99 ms │             38.15 / 39.10 ±1.31 / 41.68 ms │     no change │
│ QQuery 84 │             47.97 / 49.86 ±1.06 / 50.89 ms │             47.62 / 49.07 ±0.80 / 49.89 ms │     no change │
│ QQuery 85 │          146.52 / 147.64 ±1.01 / 149.40 ms │          148.04 / 148.47 ±0.27 / 148.81 ms │     no change │
│ QQuery 86 │             37.97 / 39.18 ±0.72 / 40.18 ms │             38.73 / 39.46 ±0.59 / 40.31 ms │     no change │
│ QQuery 87 │             82.25 / 86.88 ±3.10 / 91.99 ms │             82.32 / 89.10 ±5.67 / 97.30 ms │     no change │
│ QQuery 88 │           99.79 / 101.06 ±1.16 / 102.93 ms │            98.80 / 99.75 ±0.70 / 100.88 ms │     no change │
│ QQuery 89 │          116.95 / 118.34 ±0.75 / 119.08 ms │          116.42 / 118.34 ±1.32 / 120.16 ms │     no change │
│ QQuery 90 │             22.68 / 23.74 ±0.70 / 24.37 ms │             23.62 / 23.91 ±0.22 / 24.19 ms │     no change │
│ QQuery 91 │             63.73 / 64.58 ±0.78 / 65.95 ms │             63.48 / 64.75 ±1.16 / 66.86 ms │     no change │
│ QQuery 92 │             56.96 / 58.30 ±0.86 / 59.61 ms │             56.61 / 58.08 ±1.17 / 59.89 ms │     no change │
│ QQuery 93 │          185.52 / 188.28 ±1.85 / 191.33 ms │          184.84 / 186.98 ±1.42 / 188.39 ms │     no change │
│ QQuery 94 │             61.03 / 61.97 ±0.67 / 62.80 ms │             60.92 / 61.85 ±1.03 / 63.72 ms │     no change │
│ QQuery 95 │          127.36 / 129.10 ±0.92 / 130.01 ms │          126.85 / 128.22 ±0.87 / 129.56 ms │     no change │
│ QQuery 96 │             70.01 / 72.51 ±1.92 / 74.59 ms │             70.40 / 73.80 ±2.03 / 75.77 ms │     no change │
│ QQuery 97 │          124.52 / 127.03 ±1.29 / 128.00 ms │          123.10 / 125.30 ±1.62 / 127.38 ms │     no change │
│ QQuery 98 │          149.97 / 153.92 ±3.06 / 157.35 ms │          150.37 / 154.22 ±2.33 / 156.49 ms │     no change │
│ QQuery 99 │   10704.29 / 10728.50 ±18.57 / 10755.96 ms │   10729.23 / 10755.94 ±20.87 / 10785.58 ms │     no change │
└───────────┴────────────────────────────────────────────┴────────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                   │ 63857.38ms │
│ Total Time (gc-view-arrays-spill)   │ 61290.86ms │
│ Average Time (HEAD)                 │   686.64ms │
│ Average Time (gc-view-arrays-spill) │   659.04ms │
│ Queries Faster                      │          3 │
│ Queries Slower                      │          2 │
│ Queries with No Change              │         88 │
│ Queries with Failure                │          6 │
└─────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 324.2s
Peak memory 10.0 GiB
Avg memory 7.9 GiB
CPU user 234.5s
CPU sys 105.8s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 310.7s
Peak memory 9.0 GiB
Avg memory 6.9 GiB
CPU user 233.6s
CPU sys 99.4s
Peak spill 0 B

File an issue against this benchmark runner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants