Skip to content

[Performance]: Optimize MO TPC-H execution from SF10/SF100 memory and mixed-I/O profiling #30838

Open
5 of 21 issues completed

Description

@aunjgr

Is there an existing issue for performance?

  • I have checked the existing issues.

#30569 tracks benchmark/profiling delivery; #30716 records all-memory results and public profiles. This umbrella owns the optimization backlog. Existing #27753 canonical-hash work and #16387 immutable cache references remain related work.

Environment

  • Historical source pins: MO 873282742714436bff407dfcdbbe879147162bd3; DuckDB 1.5.6 069cc9f9b5be802405797faecc284961b07c70ef; worker f881dfc604c11c29067ec5ccfcabbeeb357f40bc. Qualification Q1-Q22, original decimal schema, full Q15 create/select/drop lifecycle and complete result consumption.

Measurement correction — 2026-10-27: The historical worker f881dfc604c11c29067ec5ccfcabbeeb357f40bc validated declared dataset/result schemas and query metadata, then normalized, counted, serialized and SHA-256-hashed result rows during timed execution (legacy manifest checks and timed result capture). The query replays did not run full input-table verification or compare results against a reference. Earlier statements that these runs performed no schema checks or result hashing were wrong. Their recorded times include client capture work; its effect on the comparisons has not been quantified. Subsequent benchmarks must execute and drain without these checks or capture.

  • Historical workstation SF10/SF100 mixed-I/O and SF10 all-memory: Ryzen 7950X3D, eight physical application cores, 32 GiB whole-application cap, no application swap. The original SF10 all-memory scores used a 512 MiB CN cache. Later isolated fix comparisons used a metric-verified 16 GiB cache within the same 32 GiB cap; these are different configurations.
  • Historical SF100 all-memory: server129, dual Xeon Silver 4314, 32 physical/64 logical CPUs, both engines use all 64 logical CPUs, NUMA interleave, equal 200 GiB whole-application caps, MO CN SHARED capacity 192 GiB, DuckDB internal limit 160 GiB, no swap. Shared-host/PSI limitations and exact builds are in [Performance]: TPC-H all-memory comparison — MO vs DuckDB SF10/SF100 results and CPU profiling #30716.
  • Images in private tmpfs, services/client, caches and workspaces are charged to the application. File residency is not decoded-vector residency. Configure future cache capacity against the actual working set and complete budget, and record the effective TOML/metric values.
  • 2026-10-26 reassessment: reread existing score/resource/plan metadata, all-query exclusive CPU tables and SF10 callchains; re-symbolized the archived SF100 Q9 raw recording with SHA-verified exact ELFs. No new query, data load or benchmark was run, and no input/result verification was performed. Historical profiles are not post-fix current-main profiles.

Details of Performance

Profile reassessment 2026-10-26

The hotspots remain evidence; the first proposed implementations were hypotheses. The failed experiments expose missing cost and caller attribution, not permission to waive regressions or abandon the bottlenecks. In particular, generic copy leaves were assigned too broadly to the unique-join gather path, and global group cardinality was treated as if it established per-batch update locality.

Historical suite observations remain: mixed-I/O MO/DuckDB elapsed ratios were 7.33x at SF10 and 7.41x at SF100; all-memory ratios were 5.64x and 5.14x. These are warm engineering comparisons for their pinned builds/configurations, not current-main scores or a language-level Go/C++ penalty. SF10 and SF100 use different hosts/resources and are not a scaling curve.

Exact exclusive-leaf recheck. Shares below use each captured user-sample denominator. CPU seconds are approximate profile-user-CPU allocations per query, normalized by completed calls; they are not scored elapsed seconds, a removable fraction or a predicted speedup.

Historical workload Leaf mechanism Exclusive user share Approx. profile user CPU s/call
SF10 Q1 group key encoding 3.63% 0.483
SF10 Q18 D64 grouped batch fill 23.83% 1.313
SF10 Q9 unionT[int32] selection copy 0.04% 0.002
SF10 Q9 Vector.UnionOne 8.42% 0.391
SF100 Q1 group key encoding 3.00% 17.277
SF100 Q18 D64 grouped batch fill 32.61% 97.204
SF100 Q9 unionT[int32] selection copy 17.90% 62.201
SF100 Q9 Vector.UnionOne 10.24% 35.591

SF100 Q9 caller attribution changes the materialization task. The reanalysis reconciles all 33,969 samples / 343,121,208,690 sampled ns with the existing leaf totals. All samples in the unionT[int32] family have ShufflePool -> BatchSet.Union callers. int32 denotes selection indices, not SQL payload width. Summing a separate defer leaf explains the 17.96% family versus the 17.90% main leaf above.

Exclusive leaf family Caller/owner Share of all user samples Consequence
unionT_int32 shuffle_batchset 17.96% Shuffle selection materialization; includes the separate defer leaf.
UnionOne hashjoin_appendUniqueMatches 2.69% Unique-join build-row path; eligible fixed-payload fraction is not established.
UnionOne other_hashjoin 6.92% Other join callers; the unique-join helper does not cover these paths.
memmove decoded_cache_copy 2.71% Decoded-cache hit materialization; coordinate #30849/#16387.

Only 26.27% of UnionOne leaf weight belongs to appendUniqueMatches; 67.55% is in other hash-join call paths. About 65.76% of memmove leaf weight is decoded-cache copying. Payload types, match/source-run distributions and current remaining cost must be established before selecting an implementation. Existing full-batch transfer, copy ownership and merged #31081 wide-selection copies are part of the baseline.

Foreground and maintenance must be separated in attribution. SF10 Q9 callchains place only 67 of 229 UnionOne samples under appendUniqueMatches; other samples include generic join probing and mergesort. SF10 Q1/Q18 UnionOne samples are under background mergesort. Across the reviewed SF10 captures, explicit mergeObjectsTask ancestry accounts for 11.27% / 7.10% / 7.82% of Q1/Q9/Q18 user samples respectively. Excluding a cold run and recording zero physical I/O do not establish maintenance quiescence. These costs still belong to whole-application accounting, but cannot all be called query-join materialization. This observation is from separate profiled replays; it does not establish maintenance activity in every scored window. Record matched maintenance state and distinguish foreground/background/kernel/wait work before causal claims. Use quiescent prepared images for a steady foreground comparison, or label retained maintenance explicitly; never silently subtract it from whole-application accounting.

Aggregation remains a large target, but the algorithm is not selected by a profile. Q18's D64 batchFill share is about 23.83% at SF10 and 32.61% at SF100. Its 150M global groups do not determine repetition or destination-chunk locality inside a real 256-row call. The original direct-update experiment lost useful combining and regressed sparse inputs by about 182%. The current local single-chunk/prefix revision has no complete performance acceptance. Require actual update-shape evidence, then compare total proof/setup/update/state costs.

Work-elimination evidence is stronger than a leaf-based implementation guess. Captured Q15 duplicates an expensive producer that DuckDB shares; its RANK rewrite is a bundled diagnostic, not a reuse-only speedup. Q20 forms 54.54M MO intermediate groups versus 0.593M after DuckDB candidate restriction; this proves different work, not a 92x wall-time opportunity. Both captured Q18 plans scan LINEITEM twice, so #30857 is an additional structural hypothesis rather than a demonstrated DuckDB advantage.

Decode, system CPU and critical path remain separate questions. Zero physical I/O does not remove decode/copy work. rchar, a capacity setting and an unscored cache-occupancy pilot cannot prove a cache-miss cause; pinned Q9 callchains show a decoded hit-copy path is active. User-only leaves do not explain the roughly 90.26/55.97 system CPU seconds in SF100 Q18/Q20. Busy-CPU ratios and native wait-timer labels do not diagnose scheduling. Lower occupancy can be an improvement when less work is done.

Current delivery and experiment ledger

Original #30880/#30884/#30885 component failures are historical. Merged corrections #30981/#30971/#30983 report isolated local SF10 target/control/full-suite acceptance for their respective changes; this does not close the broader optimization tasks or establish SF100/mixed-I/O completion. #31034 remains open and later correctness revisions do not inherit an earlier candidate's performance PASS. #30886's final merged change withdraws the production SUM optimization; it is not the original regressing range-index implementation.

Author-retained independent component confirmation, with identical compiled test fixtures and one candidate per clean-main comparison, rejects these unpublished variants:

Variant / baseline Control Main -> candidate ns/evaluation Paired slowdown
CHAR f9a1cb7c46 / 289d58b6f1 256-row constant 8,768 -> 8,957.5 +2.10%
Same CHAR variant 256-row grouping 13,996 -> 14,240 +1.61%
Same CHAR variant Empty 44.18 -> 55.66 +25.99%
Gather e577638069 / aeaa273daf Late unsupported provenance 16,102.5 -> 16,769 +4.15%
Same gather variant Same source 845.5 -> 857.2 +1.57%
Same gather variant One match 81.04 -> 87.515 +7.96%

These are component timings, not TPC-H regressions. Confirmation uses ten balanced independent process pairs, 1 s/case, CPU0/GOMAXPROCS=1, GOAMD64=v3/GOEXPERIMENT=simd, first per-case results excluded and compiler-free windows. All reported variants have zero allocations in these controls. A late unsupported gather performs preparation before falling back; the exact instruction-level causes of every CHAR/cheap-path slowdown remain unisolated. The early escaping 2 KiB gather selection was fixed; it does not explain the remaining zero-allocation regressions.

An earlier SUM prototype e22849042f versus 9728d699fd passed its component matrix and a six-pair SF10 Q1/Q18 probe (Q18 paired estimate -6.79%, Q1 no directional signal). That is scoped prototype evidence, not current local revision b648d0865d, full Q1-Q22 or SF100 acceptance. The next current-main matrix was interrupted by Rust builds after five clean pairs and is inconclusive; the new revision has functional/race/static proof only. No new optimization PR is published for these three local experiments.

Performance acceptance

  • Freeze the named bottleneck, source/executable identities, real callers and effective settings. Rebaseline after prerequisite merges; do not tune a historical hotspot that has already changed.
  • Establish caller, representation and work counts before selecting a mechanism. Separate equal-work kernel cost from fewer scans/probes/groups/copies; separate query operators, background maintenance, kernel CPU and genuine waits. Use absolute CPU/instructions and work-normalized costs, not only changing percentages.
  • Cost successful, rejected, fallback, setup, empty/tiny/constant/NULL and already-fast routes before delivery. Include code/dispatch, scans/indexing, conversion, allocations, copies and retained lifetimes. Use actual 256-row callers where applicable; large-call controls are separate.
  • Require attributable named-work reduction and uninstrumented target-query improvement. A source change, microbenchmark win, profile share, plan change, functional/SCA pass, approval or merge does not complete the performance issue.
  • Every confirmed affected/control slowdown fails; unresolved suspected slowdowns are inconclusive. Confirm with longer independent balanced runs; retain uncertainty and all samples. No favorable average, gain elsewhere, self-approved tolerance or diagnostic-overhead exception waives it.
  • Match host/image, CPU/NUMA/thread settings, total application cap and effective cache. Exclude cold runs; keep profiling separate. Account for images, caches, clients/services, native/Go allocation and workspaces. All-memory acceptance requires zero measured physical I/O/spill/swap, no OOM or sustained pressure failure; record missing PSI/attribution limits.
  • Compare one isolated candidate with matching main. Complete Q1-Q22 regression comparison and applicable SF10/SF100 memory/mixed-I/O campaigns before issue closure. Publish scoped PASS/FAIL/INCONCLUSIVE/NOT YET MEASURED/WITHDRAWN statuses separately from functional validation.
  • Use unchanged qualification SQL including Q15 lifecycle and complete consumption. Benchmark scripts collect completion/resources, not input/table/schema/row-count/reference/result/checksum verification. Semantic changes are tested separately with focused UT/BVT. Material owner/API/format/state/hot-path changes require the applicable reviewed design.

Subtasks and sequencing

The umbrella now has 21 linked subtasks. Existing issue metadata and relationships are preserved; the three new s0 entries are assigned to aunjgr and use the subtask template.

  1. Finish current decimal correctness/baseline work and reassess remaining costs after merged fixes. Start caller/update-shape/cache/foreground/system/critical-path diagnosis in [Subtask]: Attribute and reduce shuffle/join vector materialization cost #30845/[Subtask]: Reduce grouped SUM/AVG cost for measured update-locality shapes #30847/[Subtask]: Reduce measured decoded-cache reconstruction and copy cost within budget #30849/[Subtask]: Attribute and reduce allocation, minor-fault and kernel CPU costs in warm execution #30851/[Subtask]: Attribute warm-query critical paths and scaling limits before scheduling changes #30852 before another implementation guess.
  2. Design the strongest remaining work-elimination opportunities in [Subtask]: Reuse repeated aggregate producers and filter before wide joins in Q15-shaped plans #30842/[Subtask]: Restrict grouped correlated subqueries to candidate keys before aggregation #30843/[Subtask]: Reduce hash-join input with effective runtime filters and build/probe choices #30844 and the actual caller-specific materialization costs; prove eligibility and include negative controls. These are opportunities, not measured future gains.
  3. Select per-work kernels, compact keys, cache policy and scan changes from current measured distributions. Preserve useful combining and existing cheap transfers; compare each implementation independently rather than accumulating changes in a mixed candidate.
  4. Treat [Subtask]: Reuse grouped aggregate results across qualification and final projection #30857-[Subtask]: Fuse eligible expression and aggregate loops with measured SIMD specialization #30860 as additional structural designs with reachable eligibility and total-plan cost proofs. Continue the separate bounded mixed-I/O policy track in [Subtask]: Make local file-page discard policy bounded and reuse-aware #30848. No fixed issue count, predicted parity factor or hypothetical performance ceiling is a stopping rule.
Subtask Revised objective Current issue-level status
#30839 Hoist invariant decimal cast metadata and scale proofs out of row loops Merged correction #30981; issue-level remaining validation open
#30840 Preserve sound decimal domains and avoid unnecessary wide arithmetic Merged correction #30983; #31034 open; current-head acceptance pending
#30841 Reduce grouping-key and state cost for proven small domains CHAR prototype rejected; current mechanism must be reselected from evidence
#30842 Reuse repeated aggregate producers and filter before wide joins in Q15-shaped plans Workload-specific diagnosis/design and complete acceptance open
#30843 Restrict grouped correlated subqueries to candidate keys before aggregation Workload-specific diagnosis/design and complete acceptance open
#30844 Reduce hash-join input with effective runtime filters and build/probe choices Workload-specific diagnosis/design and complete acceptance open
#30845 Attribute and reduce shuffle/join vector materialization cost Gather prototype rejected; scope corrected to shuffle and join callers
#30846 Reduce normalized hash-probe and key-preparation CPU cost Workload-specific diagnosis/design and complete acceptance open
#30847 Reduce grouped SUM/AVG cost for measured update-locality shapes Original optimization withdrawn; local revision functionally tested, performance unmeasured
#30848 Make local file-page discard policy bounded and reuse-aware Workload-specific diagnosis/design and complete acceptance open
#30849 Reduce measured decoded-cache reconstruction and copy cost within budget Attribution overhead corrected by #30971; decoded reuse/copy optimization open
#30850 Reduce scan predicate materialization, repeated compaction and type-invariant decode work Workload-specific diagnosis/design and complete acceptance open
#30851 Attribute and reduce allocation, minor-fault and kernel CPU costs in warm execution Causal diagnosis before implementation
#30852 Attribute warm-query critical paths and scaling limits before scheduling changes Causal diagnosis before implementation
#30857 Reuse grouped aggregate results across qualification and final projection Structural hypothesis; eligibility and total-cost proof required
#30858 Design compact column encodings with encoding-aware filtering and aggregation Structural hypothesis; eligibility and total-cost proof required
#30859 Exploit proven grouping-key order with costed streaming aggregation Structural hypothesis; eligibility and total-cost proof required
#30860 Fuse eligible expression and aggregate loops with measured SIMD specialization Structural hypothesis; eligibility and total-cost proof required
#31138 Reduce outer-join COUNT materialization with proven preaggregation New evidence-backed opportunity; semantic/cost design and performance measurement pending
#31139 Share conditional witness summaries for paired EXISTS and NOT EXISTS New evidence-backed opportunity; semantic/cost design and performance measurement pending
#31140 Reduce exact IN and NOT IN set construction and lookup cost Completed by #31257; functional qualification and local SF10 Q17 gain recorded; requester directed closure after Q7 causal clarification

Additional opportunities 2026-10-26

All three are design/validation opportunities with explicit unknowns and negative controls, not measured future speedups. Existing reports #31024 (ordinary grouping scratch/raw-string dispatch) and #31054 (string-append NULL-prefix scans) are related baseline work and were cross-linked rather than recreated. Preserve the common performance gate and compare each candidate independently.

Historical 2026-10-23 component rejection samples — original variants, not current-main status

These are component measurements, not whole-query latency. Each list is aligned by paired process generation. All samples are retained. CPU0/GOMAXPROCS=1, Linux/amd64 Go 1.27.1, GOAMD64=v3 and GOEXPERIMENT=simd. Confirmation uses ten balanced independent pairs and 300 ms per case, following a separate 54-case discovery matrix. Cold fixture initialization is excluded from b.Loop; no builds/tests overlap timing.

Cast comparison restores only the five pre-#30880 bodies from source 1daa5e459bf5f58a9b21218a1082cb1a5bdf5562; the candidate function source is at d8938d60dc96e808cfe132aaf9837ce603412864 with #30880 included. Each cast fixture has 256 flat NULL entries (all NULL bits set), input coefficient 1234 at scale 2, target scale 4. Declared precision pairs: D64 12->14, D128 20->22, D256 40->42, D64->D256 12->14, D128->D256 20->22. D64->D128 12->14 is the unchanged control. Timed calls use the existing public NewCast/function-case dispatcher. Allocations are unchanged; the unchanged control has p=0.065, while affected all-NULL cases have p<=0.001.

Case Before samples (ns) After samples (ns)
BenchmarkAuditCasts/128to256/allnull 2429, 2430, 2429, 2428, 2432, 2420, 2430, 2426, 2439, 2624 2507, 2504, 2506, 2508, 2503, 2503, 2513, 2503, 2515, 2499
BenchmarkAuditCasts/64to128_control/allnull 2437, 2441, 2427, 2442, 2426, 2402, 2401, 2429, 2421, 2414 2416, 2423, 2417, 2416, 2406, 2424, 2411, 2414, 2395, 2411
BenchmarkAuditCasts/64to256/allnull 2420, 2416, 2416, 2416, 2417, 2424, 2414, 2420, 2419, 2418 2448, 2458, 2449, 2453, 2454, 2453, 2447, 2447, 2452, 2441
BenchmarkAuditCasts/d128/allnull 2408, 2362, 2363, 2360, 2362, 2369, 2361, 2361, 2359, 2367 2449, 2459, 2443, 2448, 2444, 2448, 2443, 2445, 2450, 2452
BenchmarkAuditCasts/d256/allnull 2484, 2412, 2410, 2405, 2412, 2397, 2401, 2411, 2400, 2400 2481, 2488, 2476, 2477, 2475, 2476, 2492, 2476, 2471, 2475
BenchmarkAuditCasts/d64/allnull 2294, 2381, 2393, 2377, 2385, 2372, 2378, 2383, 2381, 2379 2396, 2397, 2407, 2392, 2405, 2405, 2396, 2409, 2395, 2395

Multiply compares the pre-#30885 arithmetic sources from 517a0a412ba5f3b52e6abe722c9675a3d72491af with the same candidate d8938d60dc96e808cfe132aaf9837ce603412864. Public multiFn, one non-NULL row in flat Decimal256 operands, scale 0, declared precision p9/p18/p38/p38, result precision min(2p,65). Coefficients: p9/unknown-small 12345; p18 123456789012345; wide 123456789012345678901234567890. Multiplication allocations remain zero. Unknown/wide regression p<0.001; p18 p=0.021; p9 slightly improves (p=0.016) and is not a finding.

Case Before samples (ns) After samples (ns)
BenchmarkAuditMul/p18/one 104.6, 102.7, 102.9, 104.7, 102.6, 103.1, 103.1, 103.2, 103.1, 102.8 104.1, 104, 103.9, 103.9, 103.8, 103.9, 104.2, 104.2, 104, 103.9
BenchmarkAuditMul/p9/one 100.6, 100.6, 100.7, 100.6, 100.6, 100.7, 101, 100.8, 100.7, 101.9 100.7, 100.5, 100.3, 100.4, 100.5, 100.3, 100.4, 100.7, 100.8, 100.3
BenchmarkAuditMul/unknown_small/one 105.2, 106, 106.1, 105.3, 105.2, 105.4, 105.3, 105.6, 105.5, 107.2 108, 108, 108, 108.1, 108.9, 108.1, 108.2, 108.1, 108.1, 107.9
BenchmarkAuditMul/wide/one 113.6, 113.5, 113.7, 113.6, 113.6, 113.6, 113.5, 114, 113.5, 113.5 117.1, 116.9, 116.9, 117, 116.9, 116.9, 117.2, 117.2, 117.2, 116.9

#30884's already-published constructor evidence uses ten balanced pairs, 200 ms per case, identical native/Go build settings and a 16 KiB serialized integer column. Both cases have p<0.001 and unchanged 96 B / 1 allocation per construction. Their unconditional context/global atomic-counter work has no approved performance exception. Those component findings are not cleared by the separate single Q6 PMU pair.

Case Before samples (ns) After samples (ns)
BenchmarkColumnCacheConstructionAttribution/lz4 5658, 5592, 5581, 5593, 5583, 5573, 5580, 5561, 5592, 5592 5675, 5688, 5673, 5671, 5688, 5671, 5684, 5663, 5716, 5664
BenchmarkColumnCacheConstructionAttribution/uncompressed 918.8, 920.5, 921.3, 910.8, 937, 886.5, 915, 911, 917.8, 918.5 1012, 1004, 1002, 988.6, 999.8, 994.1, 991.9, 997.7, 996, 991.2

#30886's separate six-pair caller-sized reproduction and full table are in its PR description; hashmap.UnitLimit=256 is the caller boundary. The originally supplied 8192-row controls already had significant 1.97–2.49% slowdowns. Their average/high-cardinality win was not a valid acceptance override.

No new TPC-H campaign, data load or dataset/result verification was performed for this audit. Corrective PRs #30971, #30981 and #30983 have since merged; see the current ledger above. These scoped results do not assert that every TPC-H query regressed by the component percentages.

Additional information

Sub-issues

Sub-issues

5 of 21 Issues completed
Loading 21 sub-issues

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. 8 remaining items

  3. aunjgr commented on Nov 1, 2026

    @aunjgr
    ContributorAuthor

    Two approved, independent candidates are implemented locally against main c5c163cd2340110448fc2ef9c62042685aa9d773:

    • perf/inline-constant-null (84f545ffb0): remove the redundant NULL bitmap population count and short-circuit scalar NULL classification. Go1.27.1 inline cost falls from 109 to 77; production caller disassembly confirms the flat-vector path avoids the helper call. Owning vector tests cover zero-length constants, physical NULL bit zero, unrelated bits, grouping and borrowed validity.
    • perf/aggregate-decimal-fusion (6e8c6dfb2c): specialize only complete aggregate argument roots; generic expression constructors/evaluation helpers remain unchanged. Three owning packages and the real SUM/COUNT consumer pass, as do 18 SQL statements twice, prepared reuse/metadata, allocation failure/reuse and borrowed-validity preservation. Details are in [Subtask]: Fuse eligible expression and aggregate loops with measured SIMD specialization #30860.

    Scoped vet/lint report zero issues. These are implementation/compiler/functional results, not performance acceptance. A 55-second admission window remained blocked by an unrelated Cargo/Rust build; per the existing instruction those jobs were left running and timing deferred. No benchmark samples were scored, no PR was published, and no speedup/no-regression claim is made. Desktop affinity was restored and the test-owned service stopped. The old failed fusion prototype remains untouched.

    Remaining: compiler-free local component controls and independent unchanged SF10 Q1-Q22 acceptance for each candidate (cold excluded, four balanced pairs, five warm calls/query, 16 GiB effective CN cache/32 GiB whole-app cap). Confirm slower signals independently; confirmed regressions block publication. Then fresh-main/full pre-push gates and separate template-based ready PRs. No broader SF100/mixed-I/O closure claim.

  4. aunjgr commented on Nov 1, 2026

    @aunjgr
    ContributorAuthor

    Vector scalar-NULL candidate rejected by end-to-end controls, 2026-11-02

    perf/inline-constant-null / 84f545ffb0aeb2a0528c86ee9bbd3ed31e402215 was measured independently against main c5c163cd2340110448fc2ef9c62042685aa9d773. No fusion code was present.

    Do not publish this candidate. Compiler cost falls from 109 to 77 and the flat microbenchmark improves about 65%. Four qualified full Q1-Q22 pairs give Q21 -2.22% inconclusive, and an independent four-pair/16-warm-call check confirms Q21 -2.35% (-3.20% to -1.39%). But that longer run also confirms Q3 +1.33% (+1.31% to +2.86%), Q13 +1.46% (+0.10% to +2.08%) and Q20 +1.32% (+0.35% to +2.18%). The target gain does not waive these control regressions.

    All 16 latency arms qualify under the unchanged resource gates, with cold calls excluded and no benchmark input/result verification. Functional/static tests pass, but performance acceptance fails. Keep the local branch and evidence; no PR is published for it.

    The exact mechanism is unresolved. The candidate adds 23,296 bytes of executable text; vector-package compiler reports show only IsConstNull changing inline status. This is a diagnostic observation, not proof that code size caused the regressions. A matched Q3 CPU recording was attempted after all latency campaigns; a newly started unrelated Cargo/LLVM build prevented the post-warm quiet-window admission. No profile/query measurement window started. Those jobs were left running as previously instructed. Do not attribute the completed latency results to this later build.

    A possible next design is to inline only the common flat-vector class guard and keep constant payload/validity handling in a shared function. It has not been implemented or qualified and is not a claimed fix.

    Inline scalar NULL classification: independent SF10 full screen

    State: complete; qualified process pairs: [0, 1, 2, 3].

    Independent current-main/candidate normal release binaries, unchanged local TPC-H SF10 Q1-Q22 SQL and full result consumption. Eight physical CPUs (8-15), effective 16 GiB CN cache, 32 GiB whole-application cap. First/cold calls excluded; five warm calls/query/arm in this full screen. Benchmark scripts execute/drain only and do not verify inputs, schemas, rows or results. Profiles are separate from latency.

    Query Main (ms) Candidate (ms) Paired change Paired interval Screen signal
    Q1 936.584 943.556 +0.86% -0.82% to +2.54% no_directional_signal
    Q2 43.360 43.176 -0.68% -1.74% to +7.81% no_directional_signal
    Q3 289.210 293.399 +1.20% -0.01% to +1.75% no_directional_signal
    Q4 222.149 220.085 -0.76% -5.34% to +3.13% no_directional_signal
    Q5 226.851 221.809 -2.40% -4.10% to +2.37% no_directional_signal
    Q6 114.963 116.781 +0.02% -0.54% to +12.82% no_directional_signal
    Q7 241.746 241.199 +0.64% -3.64% to +1.78% no_directional_signal
    Q8 337.566 342.425 +1.49% -3.80% to +1.87% no_directional_signal
    Q9 712.991 705.615 +0.95% -3.83% to +2.49% no_directional_signal
    Q10 468.494 463.175 -1.61% -3.65% to +2.73% no_directional_signal
    Q11 65.612 62.726 -4.36% -8.35% to +5.45% no_directional_signal
    Q12 321.082 312.527 -2.25% -5.58% to +1.95% no_directional_signal
    Q13 358.418 359.689 +0.14% +0.05% to +0.58% slower
    Q14 138.507 141.213 +0.89% -1.83% to +7.70% no_directional_signal
    Q15 260.462 264.357 +0.25% -2.65% to +5.52% no_directional_signal
    Q16 115.466 116.520 +0.91% -0.24% to +1.51% no_directional_signal
    Q17 201.059 194.172 -2.45% -6.25% to +3.14% no_directional_signal
    Q18 484.088 490.395 +0.78% -1.22% to +2.76% no_directional_signal
    Q19 435.704 438.581 +0.10% -1.60% to +1.62% no_directional_signal
    Q20 281.867 285.401 +2.22% -3.02% to +3.18% no_directional_signal
    Q21 900.845 882.708 -2.22% -3.56% to +0.69% no_directional_signal
    Q22 73.851 72.202 -2.20% -8.26% to +1.63% no_directional_signal

    Each process pair contributes the ratio of its warm-call medians. The table reports the median paired ratio and a small-sample paired bootstrap interval; inconclusive intervals do not prove equivalence. Slower screen signals require independent longer confirmation. No gains elsewhere waive a confirmed regression.

    Source/executable pins:

    • main: source c5c163cd2340110448fc2ef9c62042685aa9d773; ELF SHA-256 8db813e2775ccee41dec390dd979aff6c221602c5e59e18bdfb4b004ac9887fa.
    • scan: source 84f545ffb0aeb2a0528c86ee9bbd3ed31e402215; ELF SHA-256 b30ebf1fbced25fc411c84a54a5ae65c2b69774a20beb46a0234860d74aec014.

    Resource receipts for completed arms:

    Arm Qualified Physical read/write (bytes) Spill Swap before/after Peak app memory (GiB)
    main pair0 True 0/0 0 [0, 0] 11.58
    scan pair0 True 0/0 0 [0, 0] 11.58
    scan pair1 True 0/0 0 [0, 0] 11.63
    main pair1 True 0/0 0 [0, 0] 11.63
    scan pair2 True 0/0 0 [0, 0] 11.67
    main pair2 True 0/0 0 [0, 0] 11.67
    main pair3 True 0/0 0 [0, 0] 11.63
    scan pair3 True 0/0 0 [0, 0] 11.67
    Scored warm calls in seconds
    query,pair,variant,calls_s
    1,0,main,0.967653239 0.915193981 0.942244451 0.936885191 0.931258061
    2,0,main,0.040036176 0.043173345 0.042000880 0.042657739 0.040928698
    3,0,main,0.257039779 0.290373981 0.282622091 0.286939852 0.304861600
    4,0,main,0.207453022 0.230816923 0.238969927 0.227096272 0.218699773
    5,0,main,0.210978947 0.223790081 0.236592547 0.229220434 0.225759314
    6,0,main,0.116462634 0.111466388 0.110525845 0.122837799 0.111291278
    7,0,main,0.225259600 0.248509112 0.235445492 0.243137608 0.239176301
    8,0,main,0.311222758 0.339653353 0.347678331 0.337601382 0.337013244
    9,0,main,0.687066124 0.697010884 0.752919722 0.730697512 0.715224626
    10,0,main,0.432059657 0.439875878 0.455077010 0.470517803 0.458259325
    11,0,main,0.060521023 0.068174034 0.062233160 0.064672862 0.062399473
    12,0,main,0.299901477 0.305344393 0.325462133 0.307728403 0.319691904
    13,0,main,0.338082591 0.356626567 0.373387050 0.364158998 0.361827899
    14,0,main,0.128704395 0.133469780 0.141103153 0.147154634 0.134472948
    15,0,main,0.238804407 0.268320434 0.256290591 0.253422710 0.253605506
    16,0,main,0.108583707 0.115685232 0.118651654 0.114496314 0.116345780
    17,0,main,0.184253689 0.185019362 0.207490587 0.184456645 0.192958827
    18,0,main,0.556268164 0.511873880 0.507323204 0.508595585 0.520071005
    19,0,main,0.416792353 0.450432610 0.420561734 0.429949779 0.430024790
    20,0,main,0.272169833 0.285873345 0.282206279 0.273748311 0.282687004
    21,0,main,0.864140816 0.867700267 0.886164860 0.895115871 0.908810903
    22,0,main,0.072689964 0.077760367 0.072910389 0.072882250 0.077042836
    1,0,scan,0.982662356 0.935872763 0.926527715 0.916271000 0.929168026
    2,0,scan,0.043905221 0.052130081 0.041331763 0.045842067 0.045283070
    3,0,scan,0.284375672 0.299207175 0.291237642 0.300832944 0.288238190
    4,0,scan,0.222214023 0.216617440 0.241350793 0.231331468 0.213224261
    5,0,scan,0.223009190 0.218016825 0.225908041 0.221955562 0.221790689
    6,0,scan,0.130386837 0.125754569 0.113454629 0.114250879 0.133549340
    7,0,scan,0.243434432 0.263140123 0.256117637 0.233593539 0.242467862
    8,0,scan,0.346809264 0.337736189 0.338793893 0.371695269 0.343831583
    9,0,scan,0.743135577 0.748791657 0.713526693 0.733038148 0.701677264
    10,0,scan,0.485235202 0.467478014 0.453467969 0.455483745 0.481273230
    11,0,scan,0.064778781 0.068222409 0.073587131 0.060995920 0.065799664
    12,0,scan,0.315180417 0.313734362 0.309883155 0.318295622 0.302916828
    13,0,scan,0.358468711 0.355241814 0.362372097 0.364721517 0.363459702
    14,0,scan,0.152194245 0.144984206 0.138056546 0.135300241 0.144829889
    15,0,scan,0.253700595 0.269176413 0.267601447 0.259128345 0.281909937
    16,0,scan,0.121295573 0.114848733 0.117099996 0.117108920 0.113872214
    17,0,scan,0.195015320 0.190830242 0.190315099 0.205510117 0.188124228
    18,0,scan,0.612058969 0.525806735 0.505625296 0.501421615 0.494333235
    19,0,scan,0.426097244 0.432153422 0.451036183 0.430133674 0.448393007
    20,0,scan,0.303447656 0.293069794 0.288893147 0.284219842 0.286902670
    21,0,scan,0.900283876 0.935260178 0.883165541 0.892296491 0.860846841
    22,0,scan,0.077019855 0.076059891 0.073493562 0.072302028 0.074099084
    1,1,scan,0.957468670 0.948746604 0.925035153 0.937813390 0.947086999
    2,1,scan,0.040536892 0.046276952 0.043097575 0.041972940 0.043504705
    3,1,scan,0.276237631 0.285702753 0.279708631 0.289643253 0.288033576
    4,1,scan,0.208220789 0.217019423 0.217955155 0.220107832 0.237656075
    5,1,scan,0.214155367 0.226800618 0.215947752 0.222582943 0.218590803
    6,1,scan,0.114647962 0.125934214 0.113625941 0.134392679 0.115919228
    7,1,scan,0.233841076 0.240153599 0.235149293 0.232181379 0.238550502
    8,1,scan,0.333791902 0.342922757 0.342658076 0.335588940 0.335710927
    9,1,scan,0.666270629 0.693386388 0.685531812 0.715577441 0.694759482
    10,1,scan,0.439116819 0.461702657 0.463871481 0.450601380 0.452257935
    11,1,scan,0.061260947 0.063357821 0.063186733 0.062728426 0.061274163
    12,1,scan,0.308601735 0.308572013 0.314814158 0.311047569 0.312593830
    13,1,scan,0.345056683 0.361589811 0.363972072 0.358646789 0.362089116
    14,1,scan,0.141485205 0.138657358 0.140972244 0.142772600 0.137526682
    15,1,scan,0.252006422 0.271677788 0.261112972 0.262502403 0.252501585
    16,1,scan,0.118771937 0.117184326 0.114347339 0.117954379 0.115101321
    17,1,scan,0.210767163 0.193965258 0.203784378 0.188522808 0.203143880
    18,1,scan,0.558992065 0.485206376 0.480616134 0.469273936 0.480069609
    19,1,scan,0.422686712 0.446796436 0.422696543 0.446782448 0.432495938
    20,1,scan,0.290071345 0.276435351 0.287367728 0.275490878 0.295632833
    21,1,scan,0.867577506 0.876071937 0.872209272 0.880013445 0.866432654
    22,1,scan,0.075843515 0.069264500 0.069829460 0.072498852 0.071941055
    1,1,main,0.966890290 0.950381259 0.934006906 0.930084140 0.923784432
    2,1,main,0.043764988 0.045723333 0.040699721 0.050402298 0.040745802
    3,1,main,0.281423513 0.300035164 0.282471351 0.289251456 0.285729393
    4,1,main,0.243209915 0.215245058 0.235754572 0.223882987 0.230259541
    5,1,main,0.222561807 0.229500658 0.234027608 0.223955698 0.227942279
    6,1,main,0.113671526 0.117690015 0.116305762 0.120994459 0.115356620
    7,1,main,0.241986240 0.255396800 0.238038384 0.244041519 0.246205898
    8,1,main,0.359012514 0.346787434 0.348989935 0.340625741 0.352642638
    9,1,main,0.690814185 0.724494645 0.721008523 0.726657039 0.691836942
    10,1,main,0.469384003 0.486939993 0.465355479 0.470603990 0.460250245
    11,1,main,0.065514193 0.063344582 0.062939694 0.063673564 0.064562262
    12,1,main,0.329431959 0.311155769 0.329443054 0.323471471 0.331565721
    13,1,main,0.361015910 0.359502453 0.351424828 0.358949482 0.359718186
    14,1,main,0.138408471 0.139667989 0.135763966 0.137054164 0.142671178
    15,1,main,0.258570555 0.264688250 0.260016832 0.271641628 0.252276559
    16,1,main,0.116496597 0.117460456 0.115517675 0.117468021 0.122353867
    17,1,main,0.223088078 0.188770632 0.220279637 0.191064331 0.212603113
    18,1,main,0.585968023 0.502769232 0.481412366 0.477404040 0.474648019
    19,1,main,0.433811880 0.429934863 0.444049215 0.458860284 0.427807969
    20,1,main,0.281527857 0.284264324 0.275796919 0.275948894 0.284911431
    21,1,main,0.899488482 0.897219451 0.918274308 0.904430905 0.904987333
    22,1,main,0.073070507 0.083630953 0.071954055 0.072873023 0.072181387
    1,2,scan,0.940024142 0.965518398 0.926838504 0.943855786 0.924791986
    2,2,scan,0.045379130 0.047403175 0.042777150 0.042730751 0.041560366
    3,2,scan,0.306842166 0.311576057 0.283390865 0.296595638 0.283150017
    4,2,scan,0.222380225 0.218462783 0.240479255 0.224007514 0.224182067
    5,2,scan,0.219257256 0.237695390 0.227305868 0.236771512 0.221505716
    6,2,scan,0.111538641 0.115999489 0.114045548 0.111332519 0.119447325
    7,2,scan,0.255648886 0.238962616 0.235833531 0.249489761 0.235235092
    8,2,scan,0.335478193 0.341371550 0.347636246 0.339215911 0.366864068
    9,2,scan,0.664589946 0.723838246 0.728274157 0.717844105 0.684187176
    10,2,scan,0.461610928 0.489753274 0.474466245 0.518262092 0.458754533
    11,2,scan,0.080873383 0.062663585 0.070546760 0.062447448 0.061434933
    12,2,scan,0.301421686 0.316318034 0.336031216 0.303380767 0.320424039
    13,2,scan,0.353949614 0.355575785 0.367336683 0.362155509 0.353380273
    14,2,scan,0.135343264 0.139540433 0.143657643 0.135023073 0.138511034
    15,2,scan,0.250898444 0.251022508 0.254674681 0.261477034 0.254003953
    16,2,scan,0.115448049 0.129722235 0.112503144 0.117982928 0.115904727
    17,2,scan,0.193720932 0.190503257 0.210931934 0.189863806 0.208837709
    18,2,scan,0.558589401 0.500173713 0.514051428 0.492089309 0.472522702
    19,2,scan,0.486329399 0.517487518 0.435765073 0.446126748 0.443352736
    20,2,scan,0.288260701 0.271649952 0.277957716 0.274187975 0.276002954
    21,2,scan,0.938031605 0.870721144 0.909949324 0.877735915 0.853093912
    22,2,scan,0.073019080 0.070159271 0.072463285 0.069175187 0.076886723
    1,2,main,1.041007515 0.936964930 0.946259128 0.919700267 0.914299169
    2,2,main,0.044757199 0.041747269 0.044057973 0.041703191 0.043533846
    3,2,main,0.289845866 0.296458640 0.291480611 0.295938262 0.287908952
    4,2,main,0.213543767 0.228702364 0.228984626 0.217201637 0.211599708
    5,2,main,0.225279560 0.217392949 0.222038178 0.223503397 0.205877935
    6,2,main,0.118628096 0.112766396 0.126178017 0.113619878 0.113143711
    7,2,main,0.237433872 0.239451199 0.235204307 0.256306536 0.249641151
    8,2,main,0.339723369 0.351012151 0.331959806 0.337529704 0.332161117
    9,2,main,0.678858092 0.710757564 0.713108319 0.740689537 0.681806480
    10,2,main,0.480976265 0.462453442 0.488162330 0.457130645 0.531989503
    11,2,main,0.062950262 0.067551149 0.062912654 0.067978430 0.073339344
    12,2,main,0.310042064 0.320361117 0.319122118 0.308312067 0.341153880
    13,2,main,0.353377888 0.355393158 0.378239053 0.326034561 0.456408506
    14,2,main,0.139669681 0.138605987 0.137401843 0.135303931 0.153271809
    15,2,main,0.260907139 0.257535044 0.250702920 0.260975014 0.289165831
    16,2,main,0.115911005 0.111466371 0.114185305 0.111813665 0.136761380
    17,2,main,0.188400438 0.215889615 0.199118711 0.206631101 0.226066635
    18,2,main,0.531325420 0.499517479 0.462949211 0.486762755 0.470532424
    19,2,main,0.452460939 0.480399909 0.438762677 0.475348082 0.453400647
    20,2,main,0.284601006 0.292838455 0.288321595 0.259098550 0.267901068
    21,2,main,0.936422860 0.924680813 0.908350090 0.902732944 0.893658076
    22,2,main,0.074790845 0.072752903 0.073934290 0.080725081 0.074795831
    1,3,main,0.966480431 0.936282297 0.932564193 0.982346179 0.925107934
    2,3,main,0.050068728 0.042526403 0.043186591 0.041841346 0.043211932
    3,3,main,0.283553694 0.298429373 0.292892056 0.283381758 0.298608777
    4,3,main,0.227132994 0.228258905 0.213763011 0.216208187 0.215198364
    5,3,main,0.221698071 0.232420473 0.228786937 0.240370956 0.227250839
    6,3,main,0.118276173 0.115359324 0.118616786 0.131489340 0.113358765
    7,3,main,0.276122437 0.239072262 0.257959699 0.252214651 0.252312204
    8,3,main,0.337183403 0.335683763 0.338765799 0.334720396 0.342114210
    9,3,main,0.674071897 0.676126962 0.677034440 0.692643234 0.668490126
    10,3,main,0.501740957 0.451066268 0.455366502 0.467603313 0.468158478
    11,3,main,0.071837164 0.064192627 0.071179918 0.068438657 0.063158224
    12,3,main,0.323042337 0.325536704 0.316068897 0.315297185 0.328611420
    13,3,main,0.356852685 0.357333150 0.357498275 0.358412877 0.356266989
    14,3,main,0.142792749 0.147778437 0.144095300 0.146890205 0.143508577
    15,3,main,0.270801195 0.254765627 0.276268707 0.268890353 0.256333264
    16,3,main,0.109807359 0.115246505 0.113479002 0.116097926 0.124304363
    17,3,main,0.187912684 0.211424806 0.199060337 0.188939741 0.195487164
    18,3,main,0.540237864 0.472398786 0.486360102 0.467674874 0.461553829
    19,3,main,0.463864685 0.434938948 0.432202692 0.437596264 0.446780864
    20,3,main,0.268782441 0.282783274 0.281211974 0.269335232 0.274700231
    21,3,main,0.897260023 0.891307574 0.907114161 0.896703747 0.922083695
    22,3,main,0.076817799 0.073401911 0.082994853 0.072248516 0.079752055
    1,3,scan,1.005435011 0.940635874 0.960077671 0.980265346 0.920593850
    2,3,scan,0.043254595 0.041350560 0.044553922 0.045024722 0.042462479
    3,3,scan,0.283217178 0.296324985 0.289177709 0.295560385 0.301333473
    4,3,scan,0.216637102 0.235268901 0.216050609 0.217904797 0.217581952
    5,3,scan,0.221663067 0.234953081 0.221221815 0.234464060 0.220826112
    6,3,scan,0.118420706 0.116288625 0.112863726 0.117643394 0.118302054
    7,3,scan,0.257654513 0.239473660 0.256069615 0.246005187 0.259307863
    8,3,scan,0.343764774 0.351967685 0.334851649 0.340152348 0.343478223
    9,3,scan,0.670092327 0.733942813 0.682253192 0.692259364 0.674437574
    10,3,scan,0.487074599 0.453496053 0.458872764 0.452455448 0.467360632
    11,3,scan,0.062723169 0.061807642 0.074888395 0.061899424 0.074010380
    12,3,scan,0.311319608 0.343067072 0.326458524 0.303304224 0.307726536
    13,3,scan,0.357397675 0.361579669 0.356661588 0.371990859 0.357789024
    14,3,scan,0.141453671 0.150014328 0.136294459 0.137585788 0.143214234
    15,3,scan,0.272505021 0.267309400 0.270430395 0.269101692 0.265420947
    16,3,scan,0.117215601 0.115940996 0.117582263 0.115650221 0.109813858
    17,3,scan,0.219854593 0.196115265 0.190590374 0.194623695 0.190068160
    18,3,scan,0.519217209 0.480595827 0.482688127 0.470918078 0.470468656
    19,3,scan,0.447998805 0.444665890 0.435806613 0.431234951 0.457868001
    20,3,scan,0.273653649 0.283546004 0.278916831 0.283434263 0.286827467
    21,3,scan,0.887679324 0.902522025 0.863073870 0.895054051 0.856456603
    22,3,scan,0.070915615 0.070470058 0.070419819 0.071532296 0.069603973

    Inline scalar NULL classification: independent longer target/control confirmation

    State: complete; qualified process pairs: [0, 1, 2, 3].

    Independent current-main/candidate normal release binaries, unchanged local TPC-H SF10 SQL and full result consumption. Eight physical CPUs (8-15), effective 16 GiB CN cache, 32 GiB whole-application cap. First/cold calls excluded; repetitions and query selection are recorded in the protocol. Benchmark scripts execute/drain only and do not verify inputs, schemas, rows or results. Profiles are separate from latency.

    Query Main (ms) Candidate (ms) Paired change Paired interval Screen signal
    Q3 286.632 291.732 +1.33% +1.31% to +2.85% slower
    Q13 355.086 359.330 +1.46% +0.10% to +2.08% slower
    Q20 276.124 279.559 +1.32% +0.35% to +2.18% slower
    Q21 898.104 877.585 -2.35% -3.20% to -1.40% faster

    Each process pair contributes the ratio of its warm-call medians. The table reports the median paired ratio and a small-sample paired bootstrap interval; inconclusive intervals do not prove equivalence. Slower screen signals require independent longer confirmation. No gains elsewhere waive a confirmed regression.

    Source/executable pins:

    • main: source c5c163cd2340110448fc2ef9c62042685aa9d773; ELF SHA-256 8db813e2775ccee41dec390dd979aff6c221602c5e59e18bdfb4b004ac9887fa.
    • scan: source 84f545ffb0aeb2a0528c86ee9bbd3ed31e402215; ELF SHA-256 b30ebf1fbced25fc411c84a54a5ae65c2b69774a20beb46a0234860d74aec014.

    Resource receipts for completed arms:

    Arm Qualified Physical read/write (bytes) Spill Swap before/after Peak app memory (GiB)
    main pair0 True 0/0 0 [0, 0] 8.54
    scan pair0 True 0/0 0 [0, 0] 8.55
    scan pair1 True 0/0 0 [0, 0] 8.53
    main pair1 True 0/0 0 [0, 0] 8.52
    scan pair2 True 0/0 0 [0, 0] 8.54
    main pair2 True 0/0 0 [0, 0] 8.52
    main pair3 True 0/0 0 [0, 0] 8.54
    scan pair3 True 0/0 0 [0, 0] 8.53
    Scored warm calls in seconds
    query,pair,variant,calls_s
    3,0,main,0.308870506 0.287079886 0.282994868 0.297610089 0.279209640 0.286184321 0.284945546 0.282995233 0.295352769 0.290222114 0.284743540 0.296399400 0.285737169 0.287869245 0.291241136 0.282584100
    13,0,main,0.355353168 0.353121486 0.354095274 0.352423380 0.354047337 0.360198391 0.357473529 0.356907361 0.354060901 0.348851446 0.365229153 0.353125007 0.364151787 0.353590737 0.360399040 0.359294484
    20,0,main,0.294622935 0.272744286 0.292521592 0.281577763 0.283764248 0.265863807 0.276691519 0.284557119 0.272414722 0.275480325 0.277427240 0.272887113 0.268683126 0.289813969 0.266493122 0.273308165
    21,0,main,0.876361486 0.908613300 0.885266067 0.889617457 0.900454411 0.921867246 0.898544181 0.889323079 0.901040830 0.899554746 0.892977327 0.883342556 0.887284518 0.890046843 0.902888551 0.891913883
    3,0,scan,0.343168655 0.292172462 0.280603203 0.287631995 0.292420423 0.291070317 0.289779321 0.287379099 0.287373410 0.293356985 0.287020433 0.288895978 0.293200348 0.291678283 0.283412165 0.291505455
    13,0,scan,0.355570191 0.350174057 0.363922372 0.367440803 0.353968040 0.366318509 0.358011632 0.363537808 0.377822581 0.360147278 0.357149997 0.359166023 0.361011949 0.363146364 0.383165153 0.354605009
    20,0,scan,0.300625499 0.280983481 0.280155224 0.292066294 0.276649036 0.277519524 0.277389535 0.276384668 0.283278921 0.288958177 0.276400451 0.286719254 0.269801670 0.297217289 0.280540433 0.268270286
    21,0,scan,0.866202672 0.884034657 0.866331806 0.874740326 0.887336845 0.858430905 0.892764875 0.878765625 0.897355718 0.893746590 0.881222906 0.886558414 0.873960959 0.874785439 0.905123123 0.871768242
    3,1,scan,0.330493130 0.298589204 0.287009164 0.294252047 0.292606382 0.304106052 0.285785391 0.292403124 0.293473442 0.294747470 0.284384067 0.299270109 0.289853294 0.295212501 0.286517974 0.289068648
    13,1,scan,0.370438046 0.360860022 0.350674979 0.358690979 0.371997085 0.365168414 0.356233989 0.369820494 0.358510984 0.336818200 0.358143777 0.352576183 0.358668708 0.362809818 0.356405975 0.360920034
    20,1,scan,0.298601873 0.275845583 0.291667073 0.290282467 0.279717486 0.279944165 0.274942569 0.278713060 0.277593844 0.268384758 0.281577994 0.278208033 0.277273657 0.279472372 0.274114697 0.282056687
    21,1,scan,0.864505911 0.870879367 0.880292584 0.860488188 0.852544852 0.876517761 0.871367127 0.890309230 0.866683103 0.851532395 0.887442384 0.860819835 0.859586090 0.877403237 0.872091912 0.857146053
    3,1,main,0.323248377 0.285283775 0.297325205 0.303545330 0.288351160 0.281361157 0.288411460 0.289887957 0.286935195 0.292059393 0.287582265 0.292723112 0.284201175 0.291500907 0.280005857 0.303586868
    13,1,main,0.366251169 0.359175757 0.350960379 0.359676427 0.347249460 0.358378793 0.349881765 0.347055673 0.367400382 0.349272469 0.345423360 0.353325011 0.346641508 0.358473749 0.342936538 0.351763727
    20,1,main,0.300595175 0.283373600 0.284990706 0.275203282 0.278382465 0.277544887 0.270934145 0.269720069 0.285084991 0.267203456 0.265723800 0.278165209 0.278073510 0.277750753 0.281463773 0.297139095
    21,1,main,0.906581005 0.884575793 0.904733264 0.885011156 0.886784414 0.900542521 0.887311326 0.902529010 0.877036006 0.894507494 0.883372215 0.880404024 0.901026295 0.905696894 0.908206591 0.927383794
    3,2,scan,0.323489295 0.296039654 0.285705810 0.301050943 0.292189765 0.293537963 0.286924000 0.289666283 0.305359235 0.294122514 0.298926903 0.290491044 0.298086416 0.295610672 0.291774812 0.295507134
    13,2,scan,0.362877786 0.357502940 0.353006383 0.358128981 0.365817572 0.355976747 0.355590549 0.360487468 0.368449229 0.350295905 0.370885085 0.354303696 0.357835859 0.371061337 0.358586478 0.358593119
    20,2,scan,0.308774462 0.277673480 0.295122047 0.284157214 0.277577242 0.273454653 0.280700755 0.283775418 0.277625044 0.274832911 0.286027634 0.271298001 0.276609868 0.290858784 0.270927044 0.285631558
    21,2,scan,0.861362677 0.882455847 0.882032499 0.855547108 0.864049378 0.862175034 0.887048415 0.866500378 0.863565346 0.880239307 0.879680040 0.878109136 0.872888991 0.879870566 0.877331904 0.894628663
    3,2,main,0.312487048 0.287205050 0.282652652 0.289963485 0.279345151 0.294872993 0.280539019 0.286059206 0.291430514 0.283764263 0.294015019 0.279983683 0.294623399 0.293874880 0.284498733 0.283367647
    13,2,main,0.357361668 0.362340836 0.356247892 0.359752304 0.357788180 0.352484094 0.366412531 0.364071587 0.354068531 0.350276402 0.358181243 0.359731091 0.359000972 0.368991320 0.337131267 0.346428236
    20,2,main,0.299196550 0.267725828 0.296376948 0.268164088 0.266164803 0.267755430 0.288436380 0.278475035 0.272252151 0.280275532 0.270479226 0.273850458 0.292137585 0.284232264 0.269857550 0.281084323
    21,2,main,0.897106583 0.906979960 0.916551439 0.893857146 0.921046242 0.902434078 0.912849405 0.909697595 0.900277839 0.868303118 0.894811586 0.902331339 0.887019448 0.896964856 0.897338297 0.884897048
    3,3,main,0.317562480 0.304485712 0.282134606 0.286686176 0.283970323 0.283506834 0.286994056 0.282473508 0.294977638 0.284442474 0.283683616 0.297267455 0.282632169 0.289628733 0.298833223 0.284024058
    13,3,main,0.356303027 0.363215081 0.354977402 0.351921851 0.355814642 0.364786680 0.348989029 0.355082734 0.353628149 0.348126162 0.366155701 0.352854122 0.364845775 0.366163133 0.347723636 0.368603468
    20,3,main,0.301828307 0.277820986 0.285932407 0.272045771 0.268870428 0.278670426 0.268434420 0.265491298 0.272835620 0.269351170 0.279492916 0.271351466 0.271934825 0.283892878 0.275091459 0.278886130
    21,3,main,0.898440931 0.905578306 0.912747149 0.914430107 0.898923476 0.885222350 0.894382550 0.903859610 0.893023027 0.904348101 0.910361538 0.891602385 0.893999831 0.888725564 0.901266436 0.892167890
    3,3,scan,0.323975299 0.299549866 0.295214407 0.289569910 0.287325146 0.290709479 0.288867284 0.299093480 0.288251596 0.289052305 0.286506881 0.301205807 0.286458732 0.279739558 0.284151349 0.295990922
    13,3,scan,0.365778100 0.350212997 0.359445966 0.359359697 0.353340722 0.362298902 0.371567610 0.356513076 0.362982492 0.368853458 0.359715590 0.356622608 0.369816018 0.358001127 0.360244931 0.363987073
    20,3,scan,0.300788543 0.269666377 0.299094508 0.285194641 0.280028773 0.279013446 0.282432719 0.279290357 0.280823363 0.290859561 0.273422702 0.275062879 0.276650525 0.278976940 0.282017524 0.279832249
    21,3,scan,0.870257835 0.865305688 0.881291542 0.874062011 0.891902400 0.903576364 0.866521173 0.894527908 0.867547973 0.864351992 0.879586348 0.875313319 0.890076856 0.894396027 0.884201692 0.869798767
  5. aunjgr commented on Nov 1, 2026

    @aunjgr
    ContributorAuthor

    Ready PR #31987 delivers the independent aggregate-root decimal fusion candidate. Local Q1 median paired latency improves 2.62%; the complete evidence retains all query intervals and the inconclusive positive Q11/Q18/Q21 estimates. Full pre-push checks pass; broader SF100/mixed-I/O acceptance remains open.

    The separate vector predicate candidate stays unpublished: independent longer controls confirm Q3/Q13/Q20 regressions despite a Q21 speedup. Rejection evidence and raw warm calls. Its attempted CPU diagnostic was deferred when a new unrelated Cargo/LLVM build blocked admission after the latency campaigns; no profile or causal explanation is claimed. Both old failed branches/evidence are preserved.

  6. aunjgr commented on Nov 1, 2026

    @aunjgr
    ContributorAuthor

    Ready vector PR #31988 delivers selected-row NULL reuse at constant projection, keeping global scalar NULL helpers unchanged. Q21 improves3.55% in independent targeted controls and3.72% in the four-qualified-pair full screen. All real projection component modes improve. Complete raw data, exclusions, source/ELF pins and retained Q4 uncertainty. Broader issue acceptance stays open.

    The vector fix is delivered. CI work is now in progress: #31987's Ubuntu race test exposed an incorrect test getter interpreting a Decimal256 SUM carrier as Decimal128; the correction preserves production arithmetic and measured code.

  7. aunjgr commented on Nov 3, 2026

    @aunjgr
    ContributorAuthor

    Current-main rebaseline from the 2026-11-03 SF10 profiles

    Detailed investigation, source links, measured budgets and counterexamples. New result issues: #32072 (disk-backed) and #32073 (all-memory); both now have integrated Total rows containing wall time, CPU and ratios. This is a profiling round, not fresh candidate acceptance.

    Important current-state corrections/decisions:

    Suggested bounded first wave: non-JSON check hoisting; constant CHAR predicate specialization; then small-group aggregate addressing with exact fallbacks. Larger design work should focus on bounded cache admission and actual shuffle-filter exposure. Every change still needs its agreed target/control wall-time gate; no observed CPU budget, favorable average or improvement elsewhere waives a confirmed regression.

    No kernel code, issue state/labels or benchmark workload was changed in this investigation. SF100 remains deferred to server129 when available.

  8. aunjgr commented on Nov 8, 2026

    @aunjgr
    ContributorAuthor

    The approved execution series now has a design-only PR #32380, version adebe845cb4a77d97cf7dd0ae4b2efaf87dc224a: early runtime-filter domains and dictionary-vector execution.

    Implementation starts with replacing #32098's shuffle-only hook with complete domains from independent filtered scans. The engine-wide dictionary stages are tracked in #32379. Neutral foundations are allowed; producer enablement requires the predeclared target-query gain. SF10/SF100 qualification applies; Q15/Q20 rewrites and SF1000 are outside this wave. Existing issue descriptions and performance evidence remain unchanged. No new benchmark result is claimed.

  9. assigned and unassigned on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/performanceseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions