Skip to content

[Subtask]: Reduce grouping-key and state cost for proven small domains #30841

Todo

Description

@aunjgr

Parent Issue

#30838

Detail of Subtask

Q1 direct-lookup follow-up — 2026-11-04

#32097 is now ready for review; it already bypasses generic hashing for eligible all-hit chunks after warm-up and uses dense group-ID addressing for small decimal SUM/AVG states. This task remains the owner of further small-domain grouping work; no duplicate issue or competing grouping mechanism is needed. Preserve prior implementation and rejected-prototype history below.

First priority: simplify the existing lookup. In the frozen combined SF100 RAM Q1 profile, previewCompactGroups is 5.64% of exclusive CPU samples. The current two-column path clears chunk codes, scans each column to construct them, then scans codes to fetch IDs. That is a measured remaining leaf; its entire cost is not necessarily removable.

  • Diagnose remaining generic hashing before designing a replacement: compare GroupCompactLookupRows with grouping input rows per operator, and inspect PreviewInsert/hash call paths. Use a separate bounded diagnostic, not benchmark result/data verification.
  • Evaluate a one-pass two-column lookup: read both eligible CHAR values, apply the existing canonicalization, and address ids[a * 257 + b] directly into chunk group IDs. Remove successful-path temporary-code writes/reads when possible; retain one-column support and cheap unsupported routes.
  • Preserve complete SQL key identity: empty and PAD SPACE values, embedded zero, high bytes, Unicode/collation restrictions, NULL/constant/grouping/source metadata, malformed/non-inline representations and domain expansion. No hard-coded TPC-H letters, observed four-group assumption, query IDs or cardinality guess.
  • Preserve all-hit versus miss behavior. No partially filled scratch can escape on fallback; successful IDs must reference committed current-generation groups. Keep memory accounting, publication, capacity refusal, reset/spill/rebuild and cancellation contracts. Use deterministic owning tests with independent expected semantics, not large fixtures.
  • Measure full dispatch/canonicalization/lookup work and instructions plus end-to-end Q1; include a second small-domain workload and tiny/unsupported/high-NDV controls. Do not claim a gain from one faster inner loop.

Conditional later work: direct-address group creation. Proceed only if the diagnostic proves meaningful generic hashing remains after the lookup improvement. The bounded 257×257 array may own key-to-dense-ID lookup/discovery, but requires an approved design for non-mutating preview, capacity/aggregate/output-key preflight, publication, output identity, generic transition, spill and generation teardown. A failed reservation must not leave published IDs or duplicate aggregate input on retry. Avoid allocating dense aggregate state for every possible key: the array maps possible keys to observed dense group IDs. Keep existing allocation budgets and spill representation; no extra cache tier or query-specific path. If startup-only hashing is negligible, record that result and leave full replacement unimplemented.

Evidence: SF100 combined profile and individually compressed recordings, frozen combined source bb80939a27d68195924c6fbcad711e58e9f57fc6. It contains #32093/#32097/#32098; these samples identify executed work, not an independent attribution or a speedup forecast. Independent #32097 acceptance uses current main dbf3efd4b5864216d32cfe95bc5a09690e9b4f72. Do not add historical percentages to claim removable wall time.

For these follow-ups, the requester’s 2026-11-04 readiness criterion is no confirmed affected-query/control/Total regression; a confirmed speedup is not mandatory. Report work reduction, query wall times and uncertainty separately. An unresolved slower signal requires independent confirmation and is not a pass. Preserve existing correctness/resource gates. Compare one candidate at a time against clean main with identical builds/configuration, all available CPUs, cold runs excluded, profiles separate from latency scoring, full Q1–Q22 tables and a Total row. Cover applicable SF10/SF100 RAM and disk modes; any SF100 spilling invalidates the run. Scripts execute/drain only, with no input/schema/table/row/result/reference/checksum verification. Server129 timing is explicitly deferred while unrelated jobs run; do not start it or stop those jobs. No code implementation is authorized by this tracking update.

Current candidate — 2026-10-30

Sizing-only PR #31779 is updated at 12989b6117, separately from scan-filter work. Performance captures pin d8fa09e406; the subsequent commit only repairs the shared reconnect SQL fixture, with unchanged production service source/native inputs. It hoists CHAR/Unicode sizing while preserving the existing encoders and numeric shortcuts. The historical rejected prototype below is not the source in that PR.

The original Q11/NULL review confirmations are complete. Five qualified final-source A/A/B component triplets show ordinary CHAR−5.85%, nullable−20.08%, grouping−20.00%, all-NULL−10.16% and constant−3.85%; empty is inconclusive, with0B/op and0alloc/op throughout. Final independent Q11 confirmation estimates−1.07% (interval−2.52% to+0.13%), so the earlier slower signal did not reproduce.

The ordinary full Q1–Q22 screen retained three qualified pairs, but build inspection found different make-derived release metadata between detached-main and PR builds. It is observational, not a source-only acceptance result. Q3's ordinary follow-up+3.10% remains visible. Rebuilding both revisions with identical release metadata and matching hash seed gives a separate Q3 estimate+0.38% (interval−0.69% to+2.04%); the earlier slower signal does not reproduce in that controlled comparison. This does not prove metadata alone caused it. Profiles/seed/A/A/release-metadata diagnostics remain separate and disclose all limits.

The owning hashmap tests, affected grouping consumers and final full pre-push SCA pass. Fresh CI and external review apply to the newly pushed head. Broad performance acceptance and issue closure remain open: an attributable Q1 benefit, the full matched-release comparison and applicable SF100/mixed-I/O evidence are not established by these scoped repairs. All acceptance checkboxes below remain unchanged.

Full raw timings, SQL, source/executable identities, profile summary and exclusions.

Evidence reassessment — 2026-10-26

Historical prototype status: LOCAL CANDIDATE REJECTED; that prototype produced no PR. CHAR preparation candidate f9a1cb7c46 versus main 289d58b independently reproduces constant +2.10%, grouping +1.61% and empty +25.99% component slowdowns. These do not establish whole-query regressions, and targeted encoding gains do not clear acceptance.

Observed: Historical Q1 produces four observed grouping identities. fillStringGroupStr is 3.63% of SF10 and 3.00% of SF100 exclusive user samples, with stacks through Group -> PreviewInsert -> encodeHashKeys. This entire leaf is not necessarily removable or exclusively the proposed CHAR specialization.

Not yet established: The current cost split between canonicalization, sizing/encoding, hashing, lookup and aggregate state. Four observed groups do not prove a four-value SQL key domain, and a faster synthetic CHAR loop does not establish an end-to-end gain.

Next discriminating experiment: Measure current Q1 actual key representations/byte lengths, complete-key identity and work per 256-row call. Separate sizing, encoding, hashing and lookup. Compare existing dispatch with specialization setup/rejection included, and isolate the constant/grouping regressions instead of guessing their instruction-level cause.

Measured target: Unchanged Q1 plus a second generic small-domain grouping workload, with reduced attributable key/state work and latency.

Mandatory controls and total cost boundary: Constant, grouping-set, empty/tiny, Unicode/PAD SPACE, nullable/composite keys, high NDV, skew and domain expansion. Preserve cheap unsupported routes and admission/rollback.

Performance acceptance and rejection

  • Freeze current-main/candidate sources, executables, real caller shapes and effective settings. Use the unchanged qualification SQL and complete result consumption; exclude cold runs and keep profiles separate from latency scoring.
  • Demonstrate the named work/CPU reduction and an attributable uninstrumented target-query improvement. Include the controls below and full Q1-Q22 comparison; component wins, source changes, functional tests, SCA, merging and profile percentages are separate evidence.
  • A confirmed affected/control slowdown fails; unresolved slower signals are inconclusive. Confirm with an independent longer balanced run. No gain elsewhere, favorable average or self-approved tolerance waives a regression.
  • Complete applicable SF10/SF100 and memory/mixed-I/O acceptance before issue closure under the umbrella protocol. Report uncertainty, absolute CPU/instructions/work, allocations/copies and the same whole-application budget, effective cache, I/O/spill/swap/pressure evidence. Benchmark scripts do not verify input/table/schema/row counts/reference results/checksums.

Semantics and lifecycle requirements retained

  • A reviewed design defines complete-key identity, domain-bound proof, memory bound and fallback; it does not allocate from an untrusted maximum without admission.
  • Focused tests cover nullable/composite/constant keys, boundary domains, collisions where applicable, domain expansion and generic fallback.
  • Demonstrate reduced key/state work for Q1 and a second generic small-domain workload; report high-cardinality negative controls.
  • Keep the task separate from canonical hash transport/reuse in [Enhancement]: Reuse canonical grouping hashes across shuffle and aggregation #27753 and preserve aggregation cleanup, reset and cancellation contracts.

Describe implementation you've considered

Evaluate reuse of existing type/codec selection at an appropriate setup boundary, compact canonical keys, or bounded direct addressing only with a complete domain/equality/memory proof. Prefer the cheapest demonstrated option; no extra dictionary or per-batch eligibility scan without an amortized benefit.

Coordination: Reuse canonical hash work in #27753. Keep key representation separate from #30847 updates and #30859 physical-order eligibility.

Additional information

Pinned implementation / plan references

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added
    severity/s0
    on Oct 22, 2026
  3. changed the title [-][Subtask]: Use compact grouping keys and bounded aggregation for proven small domains[/-] [+][Subtask]: Reduce grouping-key and state cost for proven small domains[/+] on Oct 25, 2026
  4. aunjgr commented on Oct 29, 2026

    @aunjgr
    ContributorAuthor

    Canonicalization-dispatch candidate: corrected implementation, qualification pending

    The scoped design hoists string/CHAR canonicalization choice out of row loops, preserves exact key framing and allocation/publication order, and introduces no iterator cache or domain-size assumption. Local corrected commit: 0af0832248f9a2bb9c43b8fd74c87db2c4b25103 (not pushed; no PR yet).

    The initial prototype improved ordinary CHAR preparation but did not meet the control gate: its first matched A/A/B screen showed empty +12.49%, grouping +3.41% and nullable +1.36% slower signals. Ordinary flag-shaped preparation was −41.37%; that gain does not waive the slower controls. These are component measurements, not TPC-H regressions.

    Generated code showed the common sizing frame grew from 232 to 264 bytes. The corrected implementation avoids copying the type descriptor, factors column sizing, and skips zero-row work only after retaining input validation. Its common sizing frame is back to 232 bytes. This is a concrete setup-cost correction, not proof that every earlier slower signal had that cause.

    The corrected source passes the hashmap owning package, existing grouping consumers, independent binary framing/PAD SPACE/Unicode tests, package-graph verification, scoped default SCA and the fast repository convention guard. Current-source component timing retained three complete A/A/B triplets before unrelated Cargo/Rust compilation interrupted the next triplet. That entire incomplete triplet is excluded. The remaining matched groups and any necessary regression confirmation must finish before SQL timing and PR publication. No accepted current-source no-regression or TPC-H claim is made.

    Both baseline labels use the same executable and matched fixtures. Measurements are local; first component samples are excluded. Failed and superseded variants remain separately recorded under build/cache-scan-group-wave-20261029; results from different implementations are not pooled. The broader issue remains open.

  5. aunjgr commented on Oct 29, 2026

    @aunjgr
    ContributorAuthor

    Post-cache CHAR candidate: local SF10 Q1–Q22 screen

    The candidate is isolated from scan-filter work and compared with main ee8b20692e560a54ef18fddbb439b875dc0b52c2, containing merged cache fix #31767. Candidate ed1114adde65f4ec8440f111287d6f648e113e33 changes only CHAR key preparation/encoding and its tests relative to that main. It preserves runtime checks; no production rule assumes TPC-H has no NULLs.

    Four balanced process pairs completed, with three measured warm calls/query after excluding the cold run. Normal Go1.27.1 SIMD/v3 builds, eight application CPUs, effective16GiB cache and32GiB whole-app budget. Resource-invalid whole attempts were excluded; accepted samples were not filtered. All retained arms passed the declared physical-I/O, spill, swap, OOM, pressure and CPU/compiler gates. The benchmark executes/drains without input/schema/table/row/reference/result/checksum verification.

    Query Main median (s) CHAR median (s) Paired change 95% paired interval Signal
    Q01 0.7281 0.6976 -3.30% -5.61% to +2.69% no_directional_signal
    Q02 0.0419 0.0421 +0.39% -4.47% to +3.69% no_directional_signal
    Q03 0.2164 0.2110 -2.20% -5.88% to +1.29% no_directional_signal
    Q04 0.1799 0.1756 -0.71% -5.55% to +1.52% no_directional_signal
    Q05 0.1853 0.1853 +0.70% -2.73% to +2.03% no_directional_signal
    Q06 0.0871 0.0862 -1.36% -2.99% to +10.53% no_directional_signal
    Q07 0.1648 0.1731 +5.67% -4.94% to +7.14% no_directional_signal
    Q08 0.1831 0.1904 +3.06% -0.36% to +11.33% no_directional_signal
    Q09 0.5875 0.5745 -2.93% -3.98% to -0.64% faster
    Q10 0.3400 0.3369 -0.12% -1.38% to +2.37% no_directional_signal
    Q11 0.0673 0.0679 +1.25% +0.78% to +2.44% slower
    Q12 0.1841 0.1789 -2.78% -5.05% to +1.01% no_directional_signal
    Q13 0.3309 0.3346 +1.88% -3.75% to +2.29% no_directional_signal
    Q14 0.1127 0.1126 +0.57% -5.71% to +9.30% no_directional_signal
    Q15 0.2016 0.2000 -0.78% -1.72% to +2.92% no_directional_signal
    Q16 0.1166 0.1147 -2.11% -3.91% to +1.72% no_directional_signal
    Q17 0.1372 0.1291 -4.96% -14.23% to -3.41% faster
    Q18 0.4635 0.4500 -3.03% -5.14% to +0.43% no_directional_signal
    Q19 0.2337 0.2262 -2.72% -6.78% to +3.57% no_directional_signal
    Q20 0.2656 0.2707 +3.80% -2.05% to +5.60% no_directional_signal
    Q21 0.7371 0.7427 +1.38% -1.60% to +1.68% no_directional_signal
    Q22 0.0761 0.0751 -1.45% -3.39% to +2.47% no_directional_signal

    Q1's paired estimate is3.30% lower but inconclusive. Q9/Q17 have faster intervals in this screen. Q11 has a slower signal (+1.25%,95% interval +0.78% to +2.44%) requiring independent confirmation; it has not been declared harmless or a confirmed causal regression. Higher Q7/Q8/Q20 point estimates remain inconclusive. Gains elsewhere do not waive a confirmed regression.

    The current-source component screen retained three A/A/B groups showing approximately41% less time on ordinary flat CHAR preparation, with roughly1% slower NULL-control signals. The longer independent control attempt was interrupted by external CPU/build activity, so that incomplete triplet is excluded. These control signals and Q11 confirmation remain open before merging. Functional/grouping tests pass; full pre-push SCA is being finalized. This report is performance evidence with explicit uncertainty, not a blanket acceptance PASS or broader issue closure.

  6. aunjgr commented on Oct 30, 2026

    @aunjgr
    ContributorAuthor

    CHAR sizing dispatch: review repair and local evidence

    Candidate d8fa09e406b74a905516dd2b5b1f3f1f44c90641 versus main d39d8a40343ccd40bf665036388df7a40ee867f8. This is the final numeric-dispatch correction, isolated from #31785. The encoder is unchanged.

    The revision limits specialization to exact canonical sizing. CHAR/Unicode codec selection happens once per column while retaining per-row NULL/GROUPING domain precedence. Uniform non-null constant widths are accumulated once with fixed widths before the existing buffer admission. No new cache, iterator state, API, key format or memory limit is introduced.

    Component controls in the production build mode

    Six balanced A/A/B triplets were requested; retained qualified triplets are listed in the raw data below. They completed with identical baseline ELF for A/A, identical fixtures, Go1.27.1 SIMD/v3 and production function alignment64. CPU8, GOMAXPROCS1/test.cpu1. Two 500ms samples/case; the first is discarded. Resource-invalid triplets are excluded in full. All retained CPU/build checks passed.

    Case Candidate vs geometric baseline A/A 95% paired bootstrap interval Same-binary B/A estimate Allocations / bytes per operation
    all-null -10.16% -11.27% to -8.11% +3.44% 0 / 0
    constant -3.85% -14.36% to -2.83% -0.22% 0 / 0
    empty -0.46% -0.86% to +0.16% -0.10% 0 / 0
    flags -5.85% -6.73% to -4.70% +0.21% 0 / 0
    grouping -20.00% -20.50% to -19.09% -0.03% 0 / 0
    nullable -20.08% -20.41% to -18.51% -0.38% 0 / 0

    These component controls use the final numeric-dispatch correction. No component has a slower signal. Empty-route variation is comparable to the same-binary control and is not claimed as an attributable gain. The abandoned encoder variants and differently linked unit-benchmark variants are not pooled into this result.

    Full warm SF10 Q1–Q22 screen

    3 qualified balanced process pairs [1, 2, 3]; three measured warm calls/query after excluding the cold call. Effective16GiB CN cache,32GiB whole-application budget, eight physical CPUs8–15. Normal uninstrumented service builds, SIMD/v3/alignment64. Benchmark scripts execute/drain only: no input/schema/table/row/reference/result/checksum verification.

    Query Main median (s) Candidate median (s) Paired change Interval / observed range Signal
    Q01 0.696826 0.686788 -2.11% -4.17% to +2.34% no_directional_signal
    Q02 0.040495 0.040925 +1.03% -2.82% to +2.66% no_directional_signal
    Q03 0.196017 0.200913 +2.50% +0.44% to +4.81% slower
    Q04 0.165368 0.173201 +2.73% -3.64% to +10.90% no_directional_signal
    Q05 0.176314 0.178846 +4.87% -7.26% to +10.95% no_directional_signal
    Q06 0.080590 0.079947 -0.54% -6.01% to +8.71% no_directional_signal
    Q07 0.154310 0.155567 +0.81% -4.94% to +3.31% no_directional_signal
    Q08 0.175695 0.177130 +0.82% -1.94% to +8.66% no_directional_signal
    Q09 0.549911 0.550192 +2.50% -2.94% to +3.01% no_directional_signal
    Q10 0.310016 0.308481 -0.50% -4.33% to +5.12% no_directional_signal
    Q11 0.065015 0.068132 +4.45% +2.72% to +4.79% slower
    Q12 0.168651 0.167266 -0.82% -0.89% to +8.94% no_directional_signal
    Q13 0.311963 0.316424 +1.65% -1.14% to +1.68% no_directional_signal
    Q14 0.106166 0.105856 +1.04% -3.99% to +1.15% no_directional_signal
    Q15 0.188407 0.187356 -0.16% -2.12% to +0.57% no_directional_signal
    Q16 0.104440 0.106791 +2.72% -1.01% to +2.78% no_directional_signal
    Q17 0.123756 0.122198 -0.77% -5.78% to +17.08% no_directional_signal
    Q18 0.427853 0.422062 -1.71% -1.74% to +3.23% no_directional_signal
    Q19 0.208823 0.213613 +2.14% +0.70% to +3.43% slower
    Q20 0.247031 0.246691 +2.86% -0.46% to +3.63% no_directional_signal
    Q21 0.740003 0.723723 -2.20% -2.71% to +0.56% no_directional_signal
    Q22 0.073926 0.077068 +3.63% -1.32% to +7.16% no_directional_signal

    Intervals are paired process-level bootstrap estimates for four or more pairs; smaller samples display the observed pair range and remain limited evidence. A faster aggregate never offsets a confirmed slower query/control.

    Pair Arm Whole-app CPU (s) Peak memory (GiB) Physical read/write bytes Spill App swap before/after
    1 main 113.087 20.043 0/0 0 [0, 0]
    1 char 113.597 19.972 0/0 0 [0, 0]
    2 char 112.441 20.088 0/0 0 [0, 0]
    2 main 113.644 19.918 0/0 0 [0, 0]
    3 main 113.356 19.635 0/0 0 [0, 0]
    3 char 113.110 20.048 0/0 0 [0, 0]

    Earlier review concerns and provenance

    The independent Q11 run on the preceding published head ed1114adde65 versus ee8b20692e completed four qualified balanced pairs with96 warm calls/query. Its estimate was−0.66%, interval−1.11% to+0.22%, so the original+1.25% slowdown did not reproduce. This historical Q11 check is separate from the revised-head full screen above.

    The earlier NULL-control rejection counted its own key benchmark as external CPU because the executable exclusion prefix pointed at the wrong directory. That failed attempt remains excluded. The new control harness uses the actual executable prefix and records the full CPU/build window. No threshold was relaxed.

    The full hashmap owning package, existing grouping consumers and the extended four-row mixed domain/constant test pass. That test verifies CHAR/Unicode identities, NULL/GROUPING precedence and exact80-byte binary-collation buffer admission. Broader issue #30841 and SF100/mixed-I/O acceptance remain open.

    Raw qualified component medians (first/cold sample excluded)
    case,triplet,baseline_a_ns,baseline_b_ns,candidate_ns
    BenchmarkCharKeyPreparation/all-null,1,5240.0,5017.0,4563.0
    BenchmarkCharKeyPreparation/all-null,2,5022.0,5227.0,4708.0
    BenchmarkCharKeyPreparation/all-null,3,5029.0,5202.0,4679.0
    BenchmarkCharKeyPreparation/all-null,4,5197.0,5027.0,4535.0
    BenchmarkCharKeyPreparation/all-null,5,5032.0,5437.0,4699.0
    BenchmarkCharKeyPreparation/constant,1,9894.0,7795.0,7521.0
    BenchmarkCharKeyPreparation/constant,2,7702.0,7778.0,7492.0
    BenchmarkCharKeyPreparation/constant,3,7941.0,7709.0,7500.0
    BenchmarkCharKeyPreparation/constant,4,7697.0,7680.0,7471.0
    BenchmarkCharKeyPreparation/constant,5,7749.0,7758.0,7455.0
    BenchmarkCharKeyPreparation/empty,1,39.68,39.85,39.83
    BenchmarkCharKeyPreparation/empty,2,39.99,39.95,39.63
    BenchmarkCharKeyPreparation/empty,3,40.28,39.87,39.73
    BenchmarkCharKeyPreparation/empty,4,39.55,39.57,39.47
    BenchmarkCharKeyPreparation/empty,5,39.98,39.51,39.56
    BenchmarkCharKeyPreparation/flags,1,9582.0,9655.0,9024.0
    BenchmarkCharKeyPreparation/flags,2,9569.0,9589.0,9019.0
    BenchmarkCharKeyPreparation/flags,3,9540.0,9571.0,9106.0
    BenchmarkCharKeyPreparation/flags,4,9657.0,9662.0,9009.0
    BenchmarkCharKeyPreparation/flags,5,9546.0,9541.0,9049.0
    BenchmarkCharKeyPreparation/grouping,1,12477.0,12473.0,9918.0
    BenchmarkCharKeyPreparation/grouping,2,12426.0,12508.0,9944.0
    BenchmarkCharKeyPreparation/grouping,3,12657.0,12451.0,10157.0
    BenchmarkCharKeyPreparation/grouping,4,12394.0,12453.0,9991.0
    BenchmarkCharKeyPreparation/grouping,5,12494.0,12470.0,9985.0
    BenchmarkCharKeyPreparation/nullable,1,12279.0,12232.0,9795.0
    BenchmarkCharKeyPreparation/nullable,2,12273.0,12239.0,9819.0
    BenchmarkCharKeyPreparation/nullable,3,12353.0,12208.0,9774.0
    BenchmarkCharKeyPreparation/nullable,4,12308.0,12233.0,9781.0
    BenchmarkCharKeyPreparation/nullable,5,12242.0,12320.0,10008.0
    Raw qualified full-query warm timings (seconds)
    query,pair,arm,warm_call_seconds
    Q01,1,main,0.739350784;0.701590502;0.680405403
    Q02,1,main,0.039864957;0.039930895;0.039726306
    Q03,1,main,0.186722073;0.196318640;0.182742985
    Q04,1,main,0.157773050;0.178524280;0.156594764
    Q05,1,main,0.170544096;0.170748666;0.166967288
    Q06,1,main,0.080589659;0.080617369;0.079999662
    Q07,1,main,0.152627227;0.151194072;0.174142624
    Q08,1,main,0.203442526;0.172316510;0.170276288
    Q09,1,main,0.514381711;0.550497279;0.536763275
    Q10,1,main,0.302929501;0.307518786;0.300630459
    Q11,1,main,0.065015371;0.064686423;0.071859029
    Q12,1,main,0.166788859;0.163760699;0.168804782
    Q13,1,main,0.310935555;0.319031907;0.311294243
    Q14,1,main,0.141709234;0.102443716;0.103154644
    Q15,1,main,0.191408716;0.195799312;0.187825029
    Q16,1,main,0.103461952;0.102433785;0.106677071
    Q17,1,main,0.123755794;0.124285922;0.120046386
    Q18,1,main,0.397235214;0.441123547;0.418195434
    Q19,1,main,0.212703155;0.206732555;0.230766265
    Q20,1,main,0.247642907;0.246217512;0.273991089
    Q21,1,main,0.706809644;0.740003143;0.741918396
    Q22,1,main,0.073264304;0.072609186;0.074080901
    Q01,1,char,0.685752074;0.738343548;0.686787552
    Q02,1,char,0.044403371;0.038193292;0.040924863
    Q03,1,char,0.201075484;0.192602413;0.195709743
    Q04,1,char,0.168091295;0.174965232;0.193796638
    Q05,1,char,0.188587756;0.169244671;0.178846229
    Q06,1,char,0.105578905;0.078112558;0.087607316
    Q07,1,char,0.157684930;0.158312958;0.155093018
    Q08,1,char,0.176436697;0.201398053;0.187235031
    Q09,1,char,0.557905155;0.550192130;0.525656683
    Q10,1,char,0.318439980;0.295359427;0.323197084
    Q11,1,char,0.093717225;0.068131901;0.065975728
    Q12,1,char,0.165312435;0.163805880;0.169855229
    Q13,1,char,0.316424096;0.330581038;0.314434263
    Q14,1,char,0.103826241;0.109245743;0.104228930
    Q15,1,char,0.187356110;0.186302074;0.187962168
    Q16,1,char,0.105905164;0.108073717;0.106278033
    Q17,1,char,0.144889573;0.118981980;0.158182588
    Q18,1,char,0.453113057;0.431712889;0.425785549
    Q19,1,char,0.207955641;0.223466649;0.217254970
    Q20,1,char,0.247910567;0.246494441;0.244073849
    Q21,1,char,0.718243035;0.723723278;0.745654064
    Q22,1,char,0.073677343;0.078512065;0.085509743
    Q01,2,char,0.671824502;0.667775826;0.662218315
    Q02,2,char,0.039020179;0.039354608;0.040298864
    Q03,2,char,0.222506102;0.186390174;0.206479747
    Q04,2,char,0.173008659;0.159344244;0.157596510
    Q05,2,char,0.195824792;0.170970356;0.195621373
    Q06,2,char,0.079821101;0.083082770;0.078980054
    Q07,2,char,0.155302609;0.178030562;0.151134272
    Q08,2,char,0.177092825;0.178173152;0.173814856
    Q09,2,char,0.538685909;0.527401597;0.556280861
    Q10,2,char,0.333225470;0.299605724;0.295915286
    Q11,2,char,0.067788792;0.065788199;0.070071945
    Q12,2,char,0.191537757;0.186995052;0.166387461
    Q13,2,char,0.319625536;0.317197504;0.315615119
    Q14,2,char,0.103339982;0.130246793;0.107381820
    Q15,2,char,0.191318508;0.189473824;0.186494833
    Q16,2,char,0.126660364;0.107346049;0.099660035
    Q17,2,char,0.122700307;0.121123743;0.122197529
    Q18,2,char,0.407114392;0.420540417;0.441872975
    Q19,2,char,0.213612912;0.209345576;0.224872575
    Q20,2,char,0.254100587;0.263235646;0.226021790
    Q21,2,char,0.746836171;0.710870481;0.720033671
    Q22,2,char,0.080211120;0.072837955;0.072947194
    Q01,2,main,0.679258908;0.697783006;0.696825899
    Q02,2,main,0.039280248;0.044771439;0.040495304
    Q03,2,main,0.205755818;0.205578500;0.193994838
    Q04,2,main,0.165367905;0.159896132;0.185735996
    Q05,2,main,0.191630406;0.171871933;0.176313868
    Q06,2,main,0.123579135;0.080258270;0.079166504
    Q07,2,main,0.164397138;0.163379931;0.153510784
    Q08,2,main,0.188861566;0.180602734;0.175956749
    Q09,2,main,0.554985025;0.571944488;0.532068173
    Q10,2,main,0.313876366;0.313172118;0.310461237
    Q11,2,main,0.098460709;0.064353034;0.064898842
    Q12,2,main,0.171652663;0.174657243;0.166757840
    Q13,2,main,0.311963402;0.312194561;0.310460397
    Q14,2,main,0.114669725;0.105988384;0.106165734
    Q15,2,main,0.188406847;0.201006535;0.187302420
    Q16,2,main,0.112364842;0.104440249;0.102474926
    Q17,2,main,0.129692284;0.125375988;0.144680304
    Q18,2,main,0.427852643;0.427728144;0.445744762
    Q19,2,main,0.206522646;0.234664201;0.206011698
    Q20,2,main,0.243442362;0.255190213;0.247030620
    Q21,2,main,0.765319089;0.740098953;0.729385090
    Q22,2,main,0.073606793;0.073926002;0.075976605
    Q01,3,main,0.720485340;0.684432331;0.686847033
    Q02,3,main,0.038995689;0.052957732;0.040834643
    Q03,3,main,0.199032771;0.196016512;0.184896649
    Q04,3,main,0.168592004;0.159387174;0.175902810
    Q05,3,main,0.201531153;0.169244212;0.186801693
    Q06,3,main,0.097059084;0.080409310;0.085059544
    Q07,3,main,0.164085129;0.154309791;0.151715821
    Q08,3,main,0.175694770;0.187003042;0.168716723
    Q09,3,main,0.550404841;0.526281592;0.549911343
    Q10,3,main,0.329192274;0.297718720;0.310015889
    Q11,3,main,0.067020575;0.070492084;0.073877952
    Q12,3,main,0.190148271;0.162785684;0.168651393
    Q13,3,main,0.316080048;0.312724419;0.310267088
    Q14,3,main,0.121239763;0.105879235;0.110258580
    Q15,3,main,0.183034055;0.213219574;0.183569214
    Q16,3,main,0.108539966;0.107882237;0.104913248
    Q17,3,main,0.121707051;0.127045683;0.119449878
    Q18,3,main,0.448959452;0.423832727;0.429537418
    Q19,3,main,0.208822509;0.206856955;0.235929727
    Q20,3,main,0.238056511;0.235769128;0.248062927
    Q21,3,main,0.710629783;0.739372587;0.724893825
    Q22,3,main,0.077488760;0.074153171;0.074369451
    Q01,3,char,0.689914583;0.712089809;0.702913870
    Q02,3,char,0.041493691;0.038750100;0.041256641
    Q03,3,char,0.206118948;0.200912725;0.187574460
    Q04,3,char,0.183194705;0.165018636;0.173200948
    Q05,3,char,0.173248378;0.175588800;0.164866557
    Q06,3,char,0.079946532;0.124106093;0.078405566
    Q07,3,char,0.155566747;0.160073713;0.151609031
    Q08,3,char,0.171444084;0.177129605;0.188688977
    Q09,3,char,0.566450878;0.571924809;0.529645742
    Q10,3,char,0.328989835;0.308480864;0.307655417
    Q11,3,char,0.072409137;0.074544840;0.065415670
    Q12,3,char,0.165980353;0.169143732;0.167265518
    Q13,3,char,0.309442481;0.304803116;0.309173382
    Q14,3,char,0.120044647;0.105855795;0.104651719
    Q15,3,char,0.179307738;0.183271014;0.197237757
    Q16,3,char,0.107727118;0.106791461;0.105597156
    Q17,3,char,0.142961670;0.118423523;0.120772784
    Q18,3,char,0.417037310;0.423664017;0.422062373
    Q19,3,char,0.205186091;0.210293804;0.235626048
    Q20,3,char,0.280100949;0.246691421;0.246655752
    Q21,3,char,0.748057328;0.723379161;0.728920782
    Q22,3,char,0.077068291;0.077488920;0.076233584

    Independent confirmation of the screening signals

    The preceding sizing-only revision f6a86279bc had Q10/Q16/Q17/Q18 slower signals in a two-pair screen. A separate longer comparison retained two qualified pairs with12 warm calls/query: Q10 −0.02% (observed pair range −0.38% to+0.34%), Q16 −1.10% (−2.87% to+0.68%), Q17 −2.02% (−3.61% to−0.43%). Q18 remained slower at+2.11% (+0.24% to+3.98%). Those limited-sample ranges are not confidence intervals.

    Q18 prompted a further code correction: preserve the pre-existing numeric sizing shortcuts before testing canonical string specialization. This is included in final head d8fa09e406; the intermediate negative was not accepted or offset by improvements elsewhere.

    The final Q18-only comparison completed four qualified balanced process pairs,24 warm calls/query after excluding the cold call. Baseline median 0.316870s; candidate median 0.314145s. Paired estimate -0.88%,95% paired interval -1.50% to -0.25%. All original resource, effective-cache, physical-I/O/spill/swap/OOM, pressure and CPU/compiler gates passed in all eight arms. The earlier slower signal did not reproduce on this correction.

    Raw final Q18 warm calls (seconds)
    pair,arm,warm_call_seconds
    0,main,0.321641951;0.315691841;0.317339155;0.312217963;0.314688204;0.314649825;0.311716234;0.312079753;0.312198903;0.305714205;0.316779168;0.317449106;0.318310373;0.317626234;0.317855994;0.309759121;0.314205906;0.319332319;0.306817321;0.316216379;0.309762372;0.310798538;0.322178819;0.310200730
    0,char,0.319286990;0.329013776;0.313274140;0.311900165;0.313745698;0.325002440;0.310362300;0.309230453;0.313058001;0.311686055;0.327796041;0.318475282;0.310723779;0.319901457;0.311039518;0.316004511;0.310148751;0.317624776;0.312836651;0.315359643;0.322651848;0.311739385;0.314057138;0.313483329
    1,char,0.318654412;0.321815002;0.315087705;0.311154437;0.310609390;0.316659449;0.322584479;0.314978254;0.311426757;0.315827532;0.314087388;0.309034784;0.320745446;0.306095084;0.312497074;0.312974162;0.328341290;0.313938078;0.311602616;0.327771552;0.307603410;0.321105444;0.314370887;0.319053511
    1,main,0.319329670;0.325166961;0.313851489;0.319149941;0.320547077;0.316328591;0.319247570;0.316159932;0.327383153;0.314526317;0.314612126;0.322634530;0.311386767;0.308699047;0.317231857;0.317909516;0.321349914;0.316269650;0.322274771;0.321995562;0.316676679;0.325510110;0.322351281;0.328340560
    2,char,0.323001309;0.313130812;0.318949623;0.320445997;0.312967223;0.331946099;0.321237065;0.318499124;0.313429191;0.312251925;0.316794000;0.312897553;0.324828372;0.320463917;0.312649344;0.314913897;0.319830070;0.314097939;0.314681157;0.316310982;0.313961759;0.310372451;0.318921513;0.305937736
    2,main,0.320651818;0.316599851;0.310910580;0.313653891;0.315700734;0.323868816;0.316197322;0.310401562;0.320082849;0.319000013;0.320754037;0.324731713;0.316224532;0.316766930;0.316742591;0.327571694;0.315720665;0.315511194;0.309845184;0.316144112;0.310965930;0.322132482;0.312830284;0.316874070
    3,main,0.317887867;0.315508905;0.321450415;0.320645388;0.316007314;0.319131723;0.313715772;0.308889347;0.310147303;0.318052066;0.325651801;0.319146823;0.318666624;0.316665842;0.313684121;0.316766621;0.318149887;0.312791904;0.312205556;0.319541741;0.310655442;0.323056760;0.318858864;0.310156283
    3,char,0.315403546;0.312439246;0.310006984;0.317580208;0.309251437;0.316174813;0.317464199;0.307011494;0.314005081;0.308263479;0.314758548;0.315123227;0.309634276;0.313392352;0.313515072;0.311926358;0.311147640;0.310905571;0.312705415;0.311252580;0.319772831;0.310885161;0.313397122;0.311574529

    Matched workload and exact executable identities

    Unchanged SF10 TPC-H SQL from the existing qgen dataset is shared by both sides. Q11 uses GERMANY and the SF10 threshold0.0000100000. The independently confirmed Q11 workload was:

    -- using default substitutions
    
    
    select
    	ps_partkey,
    	sum(ps_supplycost * ps_availqty) as value
    from
    	partsupp,
    	supplier,
    	nation
    where
    	ps_suppkey = s_suppkey
    	and s_nationkey = n_nationkey
    	and n_name = 'GERMANY'
    group by
    	ps_partkey having
    		sum(ps_supplycost * ps_availqty) > (
    			select
    				sum(ps_supplycost * ps_availqty) * 0.0000100000
    			from
    				partsupp,
    				supplier,
    				nation
    			where
    				ps_suppkey = s_suppkey
    				and s_nationkey = n_nationkey
    				and n_name = 'GERMANY'
    		)
    order by
    	value desc;
    limit -1;
    Experiment Arm Source head Executable SHA-256
    Final full Q1–Q22 main d39d8a40343ccd40bf665036388df7a40ee867f8 3174ddf9fba4101194f75dcad4f909bc3e7832bb101810bdfec723dfb58b9f9b
    Final full Q1–Q22 char d8fa09e406b74a905516dd2b5b1f3f1f44c90641 2a2d9497fe3ba35d45d5a1b3301e1a0521a5f887ac44c508d070b597bb19260e
    Final Q18 main d39d8a40343ccd40bf665036388df7a40ee867f8 3174ddf9fba4101194f75dcad4f909bc3e7832bb101810bdfec723dfb58b9f9b
    Final Q18 char d8fa09e406b74a905516dd2b5b1f3f1f44c90641 2a2d9497fe3ba35d45d5a1b3301e1a0521a5f887ac44c508d070b597bb19260e
    Historical independent Q11 main ee8b20692e560a54ef18fddbb439b875dc0b52c2 84ca145251b48a9db4d3c70296197b9a299ff35d11519d51aee486928df2b70a
    Historical independent Q11 char ed1114adde65f4ec8440f111287d6f648e113e33 5c415022ab27fed9699a1ba5e1129359f9e257da9a6497c8b6cf48b83a6b6e2a

    The component fixture is identical across baseline and candidate; the A/A baseline executable is reused, and the candidate is rebuilt from final source with the same production SIMD/v3/alignment64 mode. Earlier encoder-specialized/default-linker variants remain excluded from these results. Broad issue acceptance, including an attributable Q1 benefit plus SF100/mixed-I/O evidence, remains open. No issue-closure or blanket performance PASS is claimed.

    Final independent Q3/Q11/Q19 confirmation and Q3 causality checks

    Four qualified balanced pairs used32 warm calls/query after the cold call, on final source d8fa09e406 versus main d39d8a4034. The ordinary randomized-seed comparison retains Q3 +3.10% (+0.46% to+4.73% percentile bootstrap interval). Q11 is−1.07% (−2.52% to+0.13%) and Q19−0.21% (−0.56% to+1.94%); their screen slowdowns did not reproduce. These four-pair percentile intervals are limited small-sample estimates.

    The Q3 timing difference was investigated rather than waived. A separate128-call CPU profile has about41% of user samples in unchanged Int64HashMap.FindBatch. Whole-app CPU is161.476s versus162.435s, user cycles841.501B versus840.237B, and instructions1621.385B versus1622.656B. The changed string-sizing helper is below the0.3% report threshold. The dominant integer lookup instruction sequence and symbol targets match after normalizing data relocations; raw code bytes differ in relocation displacement. Profiling is separate from latency scoring: both profile arms had4KiB physical writes and are excluded from strict all-memory timing acceptance.

    MO initializes process-local hash keys through math/rand. Matching that seed with GODEBUG=randautoseed=0 reduced the Q3 paired difference to+0.69% (+0.13% to+1.45%). A same-baseline-ELF/same-seed A/A calibration estimates−0.04% (−0.47% to+0.45%). These are separate diagnostics, not pooled into the ordinary benchmark or claimed as a regression tolerance.

    Build inspection also found a concrete mismatch: the detached baseline had empty make-derived release metadata and reported v1.3.0, while the PR branch-derived version reported only v. Thus the earlier normal-build comparison is not a source-only experiment. Both source revisions were rebuilt with identical release metadata: MO_VERSION=v1.3.0, BRANCH_NAME=benchmark, LAST_COMMIT_ID=benchmark, BUILD_TIME=1793340000. The normal Go1.27.1 SIMD/v3/alignment64 and native build settings are retained; actual source revisions remain in Go buildvcs and artifact manifests.

    Q3 experiment Paired change Small-sample bootstrap interval Source / configuration scope
    Ordinary build, random seed +3.10% +0.46% to +4.73% Four qualified process pairs,32 warm calls/query
    Original build, matching seed +0.69% +0.13% to +1.45% Four qualified process pairs,32 warm calls/query
    Identical baseline ELF A/A, matching seed -0.04% -0.47% to +0.45% Four qualified process pairs,32 warm calls/query
    Matching release metadata and seed +0.38% -0.69% to +2.04% Four qualified process pairs,32 warm calls/query

    With matching release metadata and hash seed, Q3 is +0.38% and its interval includes both directions. The earlier+3.10% observation is retained above; it is not attributed solely to this source change. This does not prove that metadata alone caused it, and does not establish broad issue acceptance. The original Q11/NULL review confirmations are complete; the broader Q1/SF100/mixed-I/O gates remain open.

    Raw warm timings for independent confirmations and diagnostic controls (seconds)
    experiment,query,pair,arm,warm_call_seconds
    independent32,Q03,0,main,0.177154136;0.176127239;0.194306388;0.181935380;0.188625947;0.184398752;0.176591028;0.183818013;0.173181369;0.175992150;0.178144633;0.177806774;0.197466297;0.177447355;0.175422591;0.196226402;0.174147696;0.173619408;0.177781944;0.183613634;0.187399751;0.195568544;0.182442628;0.177681324;0.179600228;0.177739393;0.173516168;0.176010200;0.188106049;0.181103022;0.183412055;0.175681171
    independent32,Q11,0,main,0.070578193;0.063977235;0.085949382;0.066125669;0.063601726;0.064236945;0.064369194;0.068116421;0.061847593;0.065225891;0.071472680;0.062545831;0.063180409;0.063498096;0.063688977;0.066529937;0.065525510;0.063695416;0.072955325;0.065363901;0.061308355;0.065457960;0.063196028;0.067148704;0.063217157;0.063113048;0.077131641;0.065401510;0.069612266;0.064380164;0.062802849;0.063973455
    independent32,Q19,0,main,0.238963849;0.204944362;0.202136552;0.202947399;0.209292408;0.222552963;0.201199545;0.206808516;0.219514313;0.229673429;0.203184068;0.201730293;0.208500700;0.223434951;0.199950089;0.204797893;0.218353207;0.204206575;0.210085245;0.212066149;0.205896280;0.204912722;0.218655897;0.209848966;0.215456248;0.205224552;0.207927822;0.215001949;0.204304765;0.216095225;0.202367611;0.208894459
    independent32,Q03,0,char,0.198236165;0.189734933;0.188659237;0.185882636;0.185215218;0.181642920;0.192262805;0.198537174;0.178199922;0.178354902;0.181795630;0.185725057;0.198920293;0.189233175;0.181155952;0.180716583;0.180057836;0.180244305;0.183392875;0.188985705;0.189409195;0.184586971;0.183878803;0.193958659;0.182875577;0.180569974;0.186924713;0.181912770;0.179590698;0.181395282;0.186215055;0.206540648
    independent32,Q11,0,char,0.073740083;0.062891859;0.065196601;0.062076672;0.063071559;0.064335685;0.069508147;0.064388215;0.063921646;0.062484350;0.062450030;0.061659993;0.062041902;0.062400011;0.063403307;0.062683770;0.063633516;0.067613073;0.063818986;0.069381508;0.064421214;0.069482117;0.063485907;0.068504551;0.061367925;0.063201408;0.074820289;0.065522780;0.064643433;0.063728826;0.066389008;0.064672524
    independent32,Q19,0,char,0.217573250;0.206319868;0.200409108;0.208090532;0.202430751;0.215958265;0.233124238;0.201328384;0.220821259;0.208405361;0.215984856;0.202319561;0.202536260;0.217130292;0.200119479;0.223399761;0.203337528;0.205868130;0.208887050;0.212396887;0.205777079;0.217352321;0.208591300;0.204334924;0.230375287;0.199115172;0.202308801;0.207430034;0.201539424;0.223349311;0.214047592;0.204021615
    independent32,Q03,1,char,0.204086636;0.184010203;0.182367738;0.181932779;0.195706374;0.194843277;0.180999043;0.177556714;0.177451025;0.178824810;0.207630084;0.182058800;0.180982903;0.179354368;0.188060019;0.184063643;0.180770044;0.181222163;0.181277592;0.183893024;0.198232615;0.208696720;0.185006739;0.194376258;0.192270435;0.194723336;0.176329559;0.180752664;0.186543884;0.178347192;0.196393282;0.188419868
    independent32,Q11,1,char,0.072061718;0.077117111;0.062554890;0.063548047;0.068000382;0.065995538;0.063907156;0.068021102;0.062563340;0.062210081;0.063069628;0.065854299;0.072181488;0.068155461;0.064022125;0.071942519;0.062036482;0.063994755;0.063630467;0.063164128;0.062114091;0.063594686;0.061960723;0.068286091;0.062432071;0.065175502;0.061862892;0.061471334;0.062241591;0.061980562;0.062876969;0.063006589
    independent32,Q19,1,char,0.213318354;0.223712570;0.201375805;0.214335651;0.200125968;0.202723480;0.220493760;0.206573237;0.218499357;0.203308948;0.210448864;0.224021559;0.203313698;0.217104392;0.202866990;0.204392504;0.204600153;0.208852889;0.241807889;0.201465564;0.205299132;0.217403361;0.203763987;0.201984972;0.201605214;0.201645703;0.232217401;0.205033742;0.226791930;0.204128436;0.204877652;0.209229178
    independent32,Q03,1,main,0.179302919;0.178576321;0.190606300;0.174342135;0.190411121;0.179989446;0.179780197;0.180618124;0.182326598;0.173053640;0.188931927;0.178200342;0.195412305;0.183190726;0.176809426;0.202149712;0.179149099;0.178178563;0.175547012;0.175000423;0.178701561;0.182852047;0.199792660;0.190208102;0.174982563;0.188561698;0.176530708;0.185520098;0.183310315;0.175904740;0.179812377;0.176776887
    independent32,Q11,1,main,0.079103824;0.066985315;0.063642867;0.068470221;0.065334351;0.071862229;0.064734583;0.064217304;0.068744299;0.063107858;0.062122481;0.064259234;0.072734216;0.076457243;0.068614640;0.064530933;0.067486644;0.063695046;0.064341564;0.063307718;0.063375677;0.079595453;0.063904026;0.065098532;0.063513107;0.070450704;0.065895059;0.062994189;0.070631464;0.065555230;0.072371527;0.063273048
    independent32,Q19,1,main,0.203993366;0.206479108;0.203580117;0.240391824;0.204524864;0.204591934;0.216148995;0.205025443;0.228432454;0.202951539;0.207052816;0.226542250;0.207420204;0.203773947;0.201951903;0.203029069;0.224065528;0.207613764;0.238467220;0.216858032;0.204178375;0.205330171;0.203011289;0.205540471;0.223643539;0.206148858;0.216615113;0.201889843;0.203049639;0.233389727;0.215454727;0.234261814
    independent32,Q03,2,char,0.181427802;0.181156622;0.221063838;0.181025003;0.179043100;0.180866464;0.183434715;0.185466328;0.186245575;0.180639694;0.181496171;0.186137405;0.185916896;0.187790510;0.180986403;0.199794370;0.185963387;0.181592421;0.187106173;0.187790940;0.177083036;0.215153268;0.179764127;0.177551365;0.182538738;0.181482881;0.184291962;0.181740490;0.196832300;0.182215499;0.178505891;0.181618251
    independent32,Q11,2,char,0.072065909;0.065602590;0.079988082;0.062107711;0.063098308;0.072306798;0.063134188;0.068021322;0.063665347;0.062340121;0.068319471;0.061983282;0.065202471;0.065464141;0.065387040;0.062451520;0.063949606;0.061898172;0.074345731;0.071008372;0.064962352;0.062641590;0.063092468;0.061771623;0.069302557;0.063960146;0.076748552;0.063044229;0.064777573;0.062837969;0.067376354;0.062885549
    independent32,Q19,2,char,0.213212545;0.221582207;0.214076422;0.227196388;0.207197705;0.207619683;0.220095962;0.208352981;0.236047388;0.205138832;0.204054136;0.208843270;0.208802990;0.208364501;0.204069476;0.200023929;0.215911796;0.216578044;0.209128368;0.211780280;0.202695960;0.205885000;0.222587023;0.203307208;0.214154492;0.205949590;0.205248882;0.204067485;0.204091535;0.231327904;0.205305222;0.237233544
    independent32,Q03,2,main,0.203800037;0.190089082;0.185244708;0.189032466;0.175898690;0.177387555;0.181036373;0.175708031;0.177105206;0.193835779;0.194248999;0.173823857;0.197459298;0.186590814;0.187215382;0.199009673;0.178579171;0.176200239;0.179979366;0.196400791;0.180087836;0.214836470;0.177731234;0.177709474;0.176467118;0.176972167;0.175662431;0.183197836;0.201231335;0.181265292;0.178925190;0.182676158
    independent32,Q11,2,main,0.065987329;0.072927406;0.061386565;0.064537763;0.062689770;0.071881489;0.065978668;0.064765553;0.068618490;0.063880766;0.069359828;0.067243874;0.065738260;0.063112378;0.072492317;0.064419613;0.061609033;0.062323001;0.076339214;0.078704616;0.063817396;0.080871308;0.069343208;0.063843016;0.062576100;0.063013448;0.075751306;0.068966008;0.065934639;0.063139788;0.061967702;0.062606210
    independent32,Q19,2,main,0.201043526;0.226281731;0.202955919;0.232059092;0.201502254;0.208664340;0.217340612;0.204751843;0.239244028;0.204279875;0.206995726;0.207283325;0.204245545;0.216543614;0.212939476;0.213617644;0.231987212;0.205333702;0.209311808;0.201741384;0.201351055;0.214407521;0.225920033;0.202997929;0.220498570;0.224043879;0.222395844;0.208216642;0.206813866;0.235852739;0.200587818;0.224974755
    independent32,Q03,3,main,0.192524845;0.179525587;0.184170322;0.175817980;0.192717464;0.184483481;0.176696678;0.176217749;0.175264193;0.176294959;0.181189732;0.179435408;0.175488641;0.184214692;0.181383162;0.174099646;0.179413368;0.174996023;0.188258569;0.194409178;0.174349426;0.207023806;0.177905593;0.178052983;0.179972216;0.180496455;0.176913106;0.176198489;0.181317572;0.176729187;0.183420425;0.182403888
    independent32,Q11,3,main,0.071130761;0.066949756;0.062475450;0.062310681;0.064381615;0.070504374;0.063960155;0.064678333;0.074828819;0.061858752;0.062682770;0.062340831;0.066997286;0.065323531;0.064452634;0.064437414;0.064202335;0.063166858;0.063631037;0.062599650;0.063401167;0.064123735;0.062104522;0.064637393;0.072722596;0.064317094;0.074193851;0.062543850;0.063236558;0.066649516;0.063970286;0.068289531
    independent32,Q19,3,main,0.217881270;0.223118562;0.203844097;0.226053932;0.203615477;0.199907589;0.222397864;0.204113255;0.204374684;0.206501668;0.206096179;0.226613520;0.203494057;0.202443051;0.227372057;0.203712057;0.215891786;0.221428427;0.203233698;0.232774469;0.204471054;0.201907683;0.219402874;0.205511391;0.226006182;0.203812657;0.203562088;0.211614650;0.200799387;0.230434288;0.207186775;0.204109046
    independent32,Q03,3,char,0.187768600;0.187917050;0.193072782;0.193200352;0.182914206;0.179438788;0.178620071;0.201599314;0.189373465;0.181797571;0.182742167;0.189085426;0.187766591;0.186408875;0.188038650;0.180878343;0.208549881;0.206841977;0.192605514;0.189530455;0.187293812;0.205187252;0.193843980;0.187394442;0.185360028;0.201645534;0.180448784;0.181149502;0.190045293;0.189793974;0.210043665;0.187877560
    independent32,Q11,3,char,0.064063185;0.070706293;0.064502084;0.063451317;0.063358208;0.064169385;0.064183395;0.064111255;0.062588260;0.061608033;0.072998916;0.067110275;0.063401927;0.066254718;0.064735683;0.062776710;0.062298271;0.070417694;0.064754102;0.064132995;0.069334838;0.081433727;0.068179602;0.073539743;0.062212841;0.074430710;0.063075619;0.074895029;0.067374814;0.062985488;0.062298421;0.064644363
    independent32,Q19,3,char,0.219337035;0.220887960;0.201587914;0.214233422;0.211399981;0.210325764;0.205646210;0.206071479;0.216471834;0.204156835;0.205863450;0.210399164;0.205434091;0.215996315;0.208639830;0.213878782;0.204824963;0.209270969;0.218052119;0.205859040;0.207602714;0.227455937;0.219848552;0.205921160;0.219482484;0.202723411;0.223364451;0.202334202;0.211422941;0.205972930;0.201335495;0.240336994
    q3_same_seed,Q03,0,main,0.175643752;0.186414543;0.175749132;0.176917787;0.178741761;0.195806099;0.174830535;0.175235974;0.177088387;0.179020100;0.177654365;0.201794677;0.175407503;0.183217095;0.172829962;0.178527212;0.176398850;0.182625136;0.174755196;0.175382183;0.175635893;0.199369466;0.177099907;0.177967954;0.178470832;0.188631765;0.184596740;0.177443696;0.174720606;0.189315773;0.180659374;0.178716051
    q3_same_seed,Q03,0,char,0.179786229;0.193554689;0.177769047;0.179959138;0.175173746;0.186965244;0.180947275;0.179293281;0.177251788;0.192363104;0.179066622;0.189889813;0.179006482;0.178869973;0.196241840;0.175117356;0.177929396;0.175524955;0.182246081;0.180333968;0.175832004;0.188848056;0.177242689;0.176542431;0.176499042;0.183547736;0.184690932;0.176130702;0.177084680;0.175106426;0.181181265;0.185739408
    q3_same_seed,Q03,1,char,0.176237894;0.183539358;0.181409065;0.175031679;0.179890541;0.194718897;0.176286384;0.173280695;0.178412426;0.186031629;0.179574332;0.195986493;0.175877925;0.179274953;0.176229735;0.177941888;0.189407837;0.177159341;0.184964952;0.175407457;0.187125025;0.181121187;0.183149989;0.180051251;0.176954862;0.183227889;0.173753143;0.175407578;0.189092539;0.178982014;0.179199864;0.175704546
    q3_same_seed,Q03,1,main,0.195560107;0.186816147;0.177024474;0.187018857;0.177450822;0.178866706;0.179059516;0.177746171;0.178565127;0.180206402;0.176789944;0.185178014;0.177743851;0.173086857;0.176731534;0.187295357;0.177087363;0.180654270;0.190449145;0.189188829;0.173114088;0.176735774;0.177690161;0.194140472;0.175832828;0.174252573;0.176304166;0.189227110;0.175473889;0.183305280;0.179214206;0.175166190
    q3_same_seed,Q03,2,char,0.178695199;0.187246069;0.176603676;0.178036162;0.178953558;0.189274990;0.178377771;0.175115962;0.182482505;0.194457133;0.178057121;0.178956928;0.178935948;0.176994986;0.195211090;0.185089056;0.176921005;0.176922946;0.183655451;0.186433132;0.178052031;0.172784170;0.181043621;0.184004730;0.177870713;0.179170537;0.189071152;0.178658080;0.178291181;0.181967198;0.193709045;0.179619046
    q3_same_seed,Q03,2,main,0.175787861;0.175957551;0.177051466;0.177301726;0.173343090;0.191340225;0.177753114;0.179416709;0.179050630;0.182521687;0.179844387;0.179646958;0.182522237;0.190090380;0.178562851;0.177619305;0.175817251;0.178810960;0.180826694;0.198191551;0.176536988;0.178619472;0.186984652;0.174868264;0.193643368;0.180262345;0.176131910;0.174021178;0.189259103;0.174751605;0.181066012;0.177154277
    q3_same_seed,Q03,3,main,0.187073033;0.174418267;0.177227178;0.175461654;0.182840478;0.191174778;0.175136165;0.176752199;0.176301451;0.173972259;0.174457288;0.176479640;0.177215957;0.182826738;0.182811408;0.172178495;0.179082511;0.183552415;0.179030632;0.178009165;0.173778890;0.177432866;0.178203045;0.201162522;0.186105366;0.175469044;0.170959290;0.171652248;0.182805218;0.176946198;0.176406021;0.179723699
    q3_same_seed,Q03,3,char,0.194114949;0.180285918;0.179916489;0.192213566;0.175854684;0.175599105;0.175702785;0.181900992;0.179699441;0.180611977;0.178606234;0.177445208;0.189936374;0.177786887;0.177851937;0.180891425;0.182787920;0.176257172;0.176393193;0.179917369;0.187442773;0.179530931;0.177365059;0.189445456;0.178388815;0.179877780;0.187926711;0.180947826;0.178854913;0.183406067;0.178835634;0.175819874
    q3_baseline_aa,Q03,0,main,0.177351669;0.180589428;0.176245983;0.179694851;0.190026834;0.174802698;0.207262695;0.175998474;0.178634654;0.171816219;0.173475342;0.179335593;0.178902343;0.191009492;0.175669736;0.185176991;0.172451537;0.187346454;0.173670652;0.176487252;0.198761534;0.174763199;0.176303682;0.176877411;0.176037064;0.189094908;0.175773015;0.176300563;0.177667028;0.180826657;0.179668781;0.176117243
    q3_baseline_aa,Q03,0,char,0.193209654;0.174714509;0.178140238;0.190964003;0.176887051;0.172691686;0.173568444;0.179612572;0.178014977;0.194925969;0.175523916;0.175679216;0.189265018;0.183769698;0.176429583;0.187263915;0.183012840;0.176897952;0.176290794;0.174245620;0.189531858;0.178298727;0.173251315;0.173270794;0.200486389;0.177243051;0.176720512;0.182330133;0.181280777;0.178920114;0.174234351;0.172189728
    q3_baseline_aa,Q03,1,char,0.188660151;0.178518586;0.175306788;0.189854557;0.181693536;0.173866063;0.174868299;0.176378594;0.175360868;0.173335325;0.186348059;0.188892080;0.176788133;0.174779780;0.174881759;0.176688573;0.174021683;0.179732462;0.172492038;0.188171753;0.180950298;0.172910966;0.183377510;0.182573633;0.175438787;0.177689860;0.177448260;0.179095685;0.174814420;0.176404445;0.196802582;0.175210119
    q3_baseline_aa,Q03,1,main,0.173932263;0.188690012;0.177417731;0.175989816;0.172403389;0.190425976;0.174124233;0.170080837;0.175177849;0.184772075;0.172132400;0.178444918;0.171039663;0.183708870;0.174565882;0.174701271;0.176400685;0.182556194;0.173251266;0.172971367;0.184882345;0.195050160;0.180917869;0.170378686;0.175920406;0.175789887;0.193849704;0.175052650;0.179370434;0.180095252;0.177448331;0.174254313
    q3_baseline_aa,Q03,2,char,0.187134088;0.173278276;0.178330169;0.177563302;0.175013100;0.174313843;0.173652365;0.181272279;0.176571505;0.172236090;0.173276196;0.172349500;0.178419888;0.186273331;0.172038571;0.173277476;0.180893950;0.174992710;0.175236820;0.199261616;0.179409905;0.171105084;0.175731398;0.183117682;0.187695576;0.181804777;0.175145730;0.178600718;0.175318039;0.174768601;0.183055322;0.174523043
    q3_baseline_aa,Q03,2,main,0.174619312;0.187091279;0.175876978;0.174387643;0.177996071;0.192555760;0.172416100;0.174439324;0.177917001;0.181427749;0.172837258;0.172801949;0.174401853;0.181504809;0.178062101;0.181337379;0.172963258;0.176243686;0.175757219;0.173690685;0.173926395;0.179537525;0.195547520;0.171915082;0.176461015;0.172347521;0.179877924;0.185615984;0.172017201;0.184831887;0.185666354;0.179481915
    q3_baseline_aa,Q03,3,main,0.184012270;0.176814875;0.172291941;0.176717906;0.185982743;0.178248150;0.179497786;0.172389701;0.188630944;0.173594927;0.175486170;0.179009378;0.191760273;0.174375884;0.185456405;0.177579373;0.181312370;0.176300997;0.173854405;0.172367621;0.174503063;0.181263940;0.175229771;0.186299653;0.173624916;0.176217997;0.174656753;0.171174425;0.176332027;0.186628251;0.177008485;0.175885589
    q3_baseline_aa,Q03,3,char,0.176040159;0.185772895;0.175375381;0.175719630;0.190185819;0.175453751;0.171501824;0.173797967;0.179265917;0.174761173;0.174850153;0.182566896;0.178432870;0.186799861;0.173992056;0.176501427;0.178672499;0.193265199;0.174869763;0.176861976;0.178244631;0.196635857;0.188434126;0.173735306;0.174154565;0.188857594;0.174224295;0.175143922;0.173259988;0.172375212;0.185571285;0.174396465
    q3_matching_metadata,Q03,0,main,0.186643897;0.174962927;0.177169560;0.176695731;0.180958087;0.177047370;0.175586655;0.175628475;0.188556540;0.180928906;0.192333797;0.176891960;0.185973259;0.177595818;0.177085860;0.175961063;0.177472669;0.185512560;0.181808143;0.179165143;0.176821620;0.189311658;0.178923313;0.176548632;0.177630167;0.190693413;0.177165159;0.177198920;0.175087626;0.189060609;0.184157285;0.177384938
    q3_matching_metadata,Q03,0,char,0.196355003;0.177647908;0.179682271;0.195040298;0.186446078;0.178176506;0.175914694;0.179534021;0.183289719;0.181627364;0.181444785;0.178976823;0.188893830;0.177051800;0.183051420;0.180887107;0.181409935;0.180348448;0.175197137;0.182905650;0.179809790;0.193065465;0.188330781;0.189015339;0.176687461;0.177944247;0.177354879;0.188192992;0.179284052;0.182287932;0.185073533;0.179680362
    q3_matching_metadata,Q03,1,char,0.180238259;0.187786853;0.178668465;0.176396792;0.180818838;0.179921720;0.177866947;0.175893245;0.179149514;0.180559458;0.181656724;0.177631209;0.178652404;0.180457009;0.177713388;0.177666708;0.178975374;0.182651301;0.177246090;0.186819726;0.181215126;0.188756530;0.178505665;0.174823248;0.194356291;0.176435173;0.176730871;0.192289538;0.189182119;0.175787185;0.175041967;0.176038124
    q3_matching_metadata,Q03,1,main,0.181066937;0.184772664;0.176444432;0.180797908;0.180366089;0.182306563;0.179167774;0.188780660;0.181190086;0.189739697;0.176311683;0.179234803;0.175703665;0.186865157;0.179546832;0.176822351;0.177611689;0.189559437;0.187710994;0.177288490;0.174466059;0.190119616;0.179750751;0.183139710;0.174872238;0.187894353;0.177518429;0.179551072;0.180668368;0.195151758;0.177525029;0.176521203
    q3_matching_metadata,Q03,2,char,0.182793571;0.181290256;0.180041821;0.180224910;0.179400623;0.177892078;0.179916601;0.181840214;0.185025473;0.179782052;0.177677178;0.179859122;0.193438934;0.182485262;0.179252793;0.182941741;0.180069940;0.179802702;0.176045004;0.178170407;0.180024661;0.180949408;0.179558992;0.178220746;0.180941738;0.195994906;0.179195003;0.183545169;0.177444269;0.185884720;0.178004188;0.180600668
    q3_matching_metadata,Q03,2,main,0.179704582;0.187361125;0.176510813;0.179021835;0.176199564;0.184528176;0.179688002;0.177331110;0.175389627;0.191769421;0.177652748;0.179077925;0.183855737;0.181660725;0.178399817;0.177073311;0.179172823;0.179603663;0.184000797;0.179087244;0.178064618;0.182423003;0.188639491;0.178901864;0.176742513;0.187288966;0.189124340;0.181176967;0.177862408;0.179128624;0.188004033;0.180478340
    q3_matching_metadata,Q03,3,main,0.186136470;0.179556273;0.176725442;0.179090015;0.181573785;0.185347843;0.178401437;0.187456605;0.179162414;0.179487663;0.180029461;0.177896348;0.183114261;0.179786993;0.176276174;0.177300131;0.188972820;0.177236811;0.176349323;0.177875469;0.182688622;0.181002508;0.188818441;0.179159804;0.181523696;0.182627422;0.176898452;0.178470576;0.177313460;0.183556149;0.177745919;0.177808609
    q3_matching_metadata,Q03,3,char,0.179372004;0.189064940;0.180540619;0.178665646;0.179301414;0.184699655;0.175446527;0.178998515;0.179457503;0.185369403;0.177079841;0.179647573;0.176474923;0.179633043;0.183019011;0.184344986;0.181989405;0.180721959;0.195045590;0.177751909;0.181573216;0.187344576;0.179872902;0.178157437;0.180248551;0.185578282;0.181262577;0.188339912;0.178267938;0.179859482;0.185486032;0.178061358
  7. aunjgr commented on Nov 16, 2026

    @aunjgr
    ContributorAuthor

    Follow-on implementation: #32817. This fused compact-lookup delta is separate from the earlier merged CHAR canonicalization/sizing work. The older comments retain their historical source pins; the new all-query campaign and diagnostics are below. Issue requirements are unchanged.

    Conclusion: fused compact lookup

    Q1 user instructions fall 3.38%/3.39%/2.22% in SF10 memory/SF10 disk/SF100 disk;
    Q1 wall changes -1.91%/-.26%/-3.52%. The original Total wall deltas are
    +1.11%/+3.17%/-2.90%. The positive SF10 values and slower controls remain in
    the primary tables; they are not replaced with favorable diagnostics.

    The implementation removes duplicate descriptor/code traversals without adding
    an allocation, payload copy, derived-index owner or lifecycle. Reused actual
    caller-shape controls save33.31% instructions/35.88% cycles for 256-row two-column
    hits. All18 shapes and inlining were checked on the identical feature code and
    relevant component inputs. The explicitly approved tiny one-row miss/unsupported
    setup cost (~8 instructions,2–3cycles, zero allocation increase) remains visible
    in the design decision and is not extended to another waiver.

    Investigating the SF10 slower signals

    Primary SF10 disk Q3/Q5/Q12 wall medians were +10.35%/+14.60%/+17.61%, with almost
    unchanged estimated non-GC instructions. A separate UNSCORED all22 replay used
    main -> compact -> the identical main ELF, adding TLB/cache counters (100%
    hardware running). It is not pooled with qualification or used to overwrite any
    primary result.

    Metric Main before Compact Identical main after
    Total wall s 3.378049 3.320734 3.332787
    Q3 wall s .12466 .12206 .11867
    Q5 wall s .09337 .08801 .08852
    Q12 wall s .09990 .09526 .08983

    Identical-main Q12 varies10.1%; compact lies between. Q3/Q5 primary slowdowns do
    not reproduce. CPI/TLB/cache data demonstrate process-level stall variation; the
    probe does not prove a unique hardware cause for every original wait. Together
    with unchanged control-query work, source/component review and target instruction
    wins, no stable introduced penalty was confirmed. Whole-window Go allocated bytes
    change +.085%/+.542%/-.090% in the three primary modes; these include common
    scrape/background work and are not intrinsic per-query allocation-size claims.

    Measurement scope

    Main at capture start, 8e8708a8d306a69512d140b40bfcfebc1d404a32, which includes the
    file-service revert, is the reference. Every arm is isolated; no pending allocator
    or other optimization PR is included. Go1.27.1, SIMD/v3, function alignment64 and
    matching native artifacts/release metadata are used. THP stays enabled with its
    existing host policy; no VM policy or preconditioning is added.

    One process per arm/configuration, one excluded cold Q1–Q22 suite followed by five
    profiled warm full suites. All32 CPUs, 48GiB application/aggregate/join thresholds,
    16GiB shared cache. Spill/swap/OOM and compiler/excess external-CPU interference
    invalidate a capture. Two compact SF100 attempts overlapped Cargo and are retained
    wholly excluded; no partial sample was pooled. The automated quiet resume reused
    completed configurations. Benchmark SQL is executed/drained without checking
    input/table/schema/row/reference-result/checksum contents.

    Primary timings include GC and instrumentation. Total sums per-query medians;
    no GC-subtracted wall time or independent-process confidence bound is claimed.
    Native per-query counters publish asynchronously; the tables preserve their
    limits. No globally exact copy-byte counter exists. Single-host/process evidence
    cannot establish every-workload or population noninferiority.

    Exact service pins

    Arm Source ELF SHA-256
    main 8e8708a8d306a69512d140b40bfcfebc1d404a32 e50cd32c7844c2074d56aabbd8c20c07f32627d294286668dd1e231a89b63b06
    membership-restriction 7181ef4d29aaf50fbf116169187dd98f1e13a476 b8d2e1b8ce96ccc3933d548c398e952b230edb2700fb8174aeaf56346ae04e04
    compact 19ca2f1d0a8fc802cc331b8f7da3f382177bff73 9e338eb777e288702e269d20b1e4543a4043113a3a6bf4bf71de120f937e4002
    sf10-memory: all 22 queries, Total, CPU, instructions and allocations
    Query Main wall s Candidate wall s Wall Δ Main CPU s Candidate CPU s Main instructions G Candidate instructions G Instructions Δ
    1 0.209173 0.205174 -1.91% 5.99594 5.95606 66.7678 64.5087 -3.38%
    2 0.029844 0.031970 +7.12% 0.42656 0.39776 2.5821 2.5755 -0.26%
    3 0.121167 0.119507 -1.37% 2.72487 2.77975 8.9581 8.9927 +0.39%
    4 0.064635 0.068436 +5.88% 1.56855 1.52155 10.6516 10.6557 +0.04%
    5 0.094294 0.094214 -0.08% 2.09203 1.96278 10.1923 8.9164 -12.52%
    6 0.036614 0.035014 -4.37% 0.77325 0.81444 3.8922 3.8944 +0.06%
    7 0.090074 0.095219 +5.71% 2.19213 2.29791 7.7082 7.7188 +0.14%
    8 0.248712 0.246327 -0.96% 2.38467 2.43890 12.9967 13.1057 +0.84%
    9 0.259862 0.266982 +2.74% 5.83832 6.05765 37.6109 37.5697 -0.11%
    10 0.224892 0.238041 +5.85% 5.50040 5.74990 24.8560 24.8691 +0.05%
    11 0.031620 0.031677 +0.18% 0.44541 0.45654 2.9058 2.9018 -0.14%
    12 0.085813 0.084837 -1.14% 2.13188 2.12608 12.4890 12.4908 +0.01%
    13 0.253139 0.257466 +1.71% 6.81977 7.03250 44.3135 44.3903 +0.17%
    14 0.079365 0.081428 +2.60% 1.16725 1.11921 7.8631 7.8622 -0.01%
    15 0.169590 0.166219 -1.99% 1.82851 1.79384 11.0258 11.0447 +0.17%
    16 0.140549 0.141099 +0.39% 1.66378 1.70198 7.8620 7.8548 -0.09%
    17 0.083983 0.086868 +3.43% 2.06083 2.08420 15.2211 15.3543 +0.88%
    18 0.365285 0.371750 +1.77% 7.05983 7.13509 21.6987 21.7161 +0.08%
    19 0.124486 0.122304 -1.75% 3.22636 3.18615 21.7665 21.7652 -0.01%
    20 0.218104 0.222759 +2.13% 4.62256 4.73068 18.0422 18.1091 +0.37%
    21 0.318295 0.319510 +0.38% 8.22978 8.32129 68.8936 68.9163 +0.03%
    22 0.046138 0.045258 -1.91% 0.80188 0.80774 6.8960 6.8915 -0.06%
    Total 3.295635 3.332056 +1.11% 69.55457 70.47199 425.1932 422.1038 -0.73%

    Allocation counters include common process/scrape and asynchronous engine work. No globally exact copy-byte counter is available. GC CPU is measured process GC CPU, not a wall-time subtraction.

    | Query | Main Go MB | Candidate Go MB | Go bytes Δ | Main Go objects | Candidate Go objects | Main GC CPU s | Candidate GC CPU s |
    |---|---:|---:|---:|---:|---:|---:|---:|---:|
    | 1 | 53.084 | 53.174 | +0.17% | 380858 | 398365 | 0.0000 | 0.0000 |
    | 2 | 35.001 | 22.892 | -34.59% | 355925 | 301179 | 0.0000 | 0.0000 |
    | 3 | 37.245 | 39.840 | +6.97% | 454717 | 463610 | 0.0000 | 0.0000 |
    | 4 | 38.364 | 38.514 | +0.39% | 332364 | 330559 | 0.0000 | 0.0000 |
    | 5 | 62.934 | 50.136 | -20.34% | 467834 | 433905 | 0.2210 | 0.0000 |
    | 6 | 38.499 | 39.549 | +2.73% | 240494 | 283032 | 0.0000 | 0.0000 |
    | 7 | 53.243 | 52.634 | -1.14% | 409656 | 407730 | 0.0000 | 0.0000 |
    | 8 | 284.415 | 282.136 | -0.80% | 2416905 | 2403726 | 0.2974 | 0.3561 |
    | 9 | 153.107 | 152.860 | -0.16% | 2454638 | 2448362 | 0.1918 | 0.2069 |
    | 10 | 60.399 | 59.709 | -1.14% | 797448 | 774704 | 0.0000 | 0.0000 |
    | 11 | 31.715 | 31.009 | -2.23% | 538175 | 534614 | 0.0000 | 0.0000 |
    | 12 | 51.046 | 49.692 | -2.65% | 387770 | 382217 | 0.0000 | 0.0000 |
    | 13 | 866.696 | 865.968 | -0.08% | 15293140 | 15314452 | 0.7167 | 0.6738 |
    | 14 | 47.718 | 46.875 | -1.77% | 1009411 | 1013061 | 0.0000 | 0.0000 |
    | 15 | 57.032 | 55.623 | -2.47% | 670423 | 653738 | 0.0000 | 0.0000 |
    | 16 | 39.455 | 39.234 | -0.56% | 652012 | 660394 | 0.0000 | 0.0000 |
    | 17 | 78.841 | 78.876 | +0.04% | 537313 | 527657 | 0.2146 | 0.2299 |
    | 18 | 43.579 | 44.171 | +1.36% | 372414 | 372644 | 0.0000 | 0.0000 |
    | 19 | 72.620 | 70.657 | -2.70% | 590994 | 578985 | 0.0000 | 0.0000 |
    | 20 | 129.643 | 130.027 | +0.30% | 2378804 | 2379729 | 0.2127 | 0.2081 |
    | 21 | 93.914 | 97.273 | +3.58% | 650130 | 678498 | 0.0000 | 0.0000 |
    | 22 | 23.775 | 21.814 | -8.25% | 254990 | 232817 | 0.0000 | 0.0000 |
    | Total | 2352.326 | 2322.662 | -1.26% | 31646415 | 31573978 | 1.8542 | 1.6748 |

    Native allocation attribution limit: the default allocator publishes counters after a 100 ms window; MPool publishes after a one-second window. Their query-boundary increments are retained in raw JSON, but can belong to neighboring queries. They are not exact per-query allocation evidence and are not used to declare a per-query allocation pass. IO/cache counters overlap the default allocator and must not be added again. Long-window native totals also have endpoint lag; exact per-query native costs need separate operator/component evidence.

    Query Main system CPU s Candidate system CPU s Main minor faults Candidate minor faults Main read MB Candidate read MB Main host THP fallbacks Candidate host THP fallbacks
    1 0.0000 0.0000 4105 4936 0.00 0.00 0 0
    2 0.0116 0.0200 1139 753 0.00 0.00 0 0
    3 0.0249 0.0303 8729 8326 0.00 0.00 1 0
    4 0.0105 0.0181 425 191 0.00 0.00 0 0
    5 0.0330 0.0419 1973 2689 0.00 0.00 0 0
    6 0.0000 0.0000 3 4 0.00 0.00 0 0
    7 0.0291 0.0358 4564 11098 0.00 0.00 0 0
    8 0.0507 0.0607 26905 23798 0.00 0.00 39 36
    9 0.1486 0.1558 51489 39247 0.00 0.00 24 16
    10 0.1839 0.2203 34701 34814 0.00 0.00 2 0
    11 0.0132 0.0184 2941 1892 0.00 0.00 0 0
    12 0.0330 0.0184 2857 2254 0.00 0.00 0 0
    13 0.1320 0.1066 26278 32025 0.00 0.00 7 15
    14 0.0207 0.0297 2385 2554 0.00 0.00 0 0
    15 0.0392 0.0408 728 957 0.00 0.00 0 0
    16 0.0780 0.0821 13349 18517 0.00 0.00 0 0
    17 0.0000 0.0000 40 53 0.00 0.00 0 0
    18 2.2624 2.1350 193071 180516 0.00 0.00 143 126
    19 0.0000 0.0000 266 363 0.00 0.00 0 0
    20 0.4200 0.4648 43252 49293 0.00 0.00 4 0
    21 0.0020 0.0219 2604 2860 0.00 0.00 0 0
    22 0.0272 0.0185 5140 4256 0.00 0.00 0 0
    Total 3.5201 3.5190 426944 421396 0.00 0.00 220 193

    Faults/system CPU/read bytes belong to the measured application. THP fallback counts are host-wide supporting evidence; they neither automatically invalidate a result nor excuse an introduced resource regression.
    Whole-warm peak GiB: main 20.843, candidate 21.154.

    External process cores: main 0.442, candidate 0.387; interrupt cores separately: 0.355, 0.351.

    GC attribution uses period-weighted instruction samples; non-GC figures are estimates, not exact foreground counters. Raw hardware instructions are above.

    Query Main estimated non-GC instructions G Candidate estimated non-GC instructions G Δ
    1 66.7678 64.5087 -3.38%
    2 2.5821 2.5755 -0.26%
    3 8.9581 8.9927 +0.39%
    4 10.6516 10.6557 +0.04%
    5 8.9637 8.9164 -0.53%
    6 3.8922 3.8944 +0.06%
    7 7.7082 7.7188 +0.14%
    8 11.9075 11.8551 -0.44%
    9 36.2913 36.3519 +0.17%
    10 24.8560 24.8691 +0.05%
    11 2.9058 2.9018 -0.14%
    12 12.4890 12.4908 +0.01%
    13 38.9909 39.0049 +0.04%
    14 7.8578 7.8536 -0.05%
    15 11.0215 11.0447 +0.21%
    16 7.8620 7.8548 -0.09%
    17 13.9833 14.0987 +0.82%
    18 21.6987 21.7161 +0.08%
    19 21.7665 21.7652 -0.01%
    20 16.4975 16.5782 +0.49%
    21 68.8936 68.9163 +0.03%
    22 6.8960 6.8915 -0.06%
    Total 413.4411 411.4548 -0.48%
    sf10-disk: all 22 queries, Total, CPU, instructions and allocations
    Query Main wall s Candidate wall s Wall Δ Main CPU s Candidate CPU s Main instructions G Candidate instructions G Instructions Δ
    1 0.218540 0.217976 -0.26% 6.04298 5.98585 66.7652 64.5009 -3.39%
    2 0.030740 0.030845 +0.34% 0.37691 0.41025 2.5769 2.5846 +0.30%
    3 0.119129 0.131455 +10.35% 2.69380 3.00147 8.9551 8.9589 +0.04%
    4 0.063042 0.069112 +9.63% 1.54499 1.59729 10.6539 10.6593 +0.05%
    5 0.088038 0.100892 +14.60% 1.85091 2.14451 8.9196 8.8940 -0.29%
    6 0.036913 0.038465 +4.20% 0.86933 0.83075 3.8962 3.8946 -0.04%
    7 0.091905 0.094974 +3.34% 2.18039 2.26066 7.7077 7.7086 +0.01%
    8 0.243284 0.239346 -1.62% 2.37176 2.36477 13.1589 13.0186 -1.07%
    9 0.251727 0.265375 +5.42% 5.71262 6.00353 36.3776 37.5237 +3.15%
    10 0.224216 0.243689 +8.69% 5.36496 5.76898 24.8736 24.8315 -0.17%
    11 0.032660 0.032417 -0.74% 0.46874 0.47395 2.9029 2.9021 -0.03%
    12 0.086806 0.102095 +17.61% 2.06807 2.39698 12.4929 13.8952 +11.23%
    13 0.249260 0.253700 +1.78% 6.70478 6.80196 43.9554 44.3692 +0.94%
    14 0.081055 0.080878 -0.22% 1.12237 1.26431 7.8785 7.8586 -0.25%
    15 0.163831 0.167576 +2.29% 1.78109 1.79827 11.1472 11.0338 -1.02%
    16 0.137598 0.140434 +2.06% 1.67359 1.70735 7.8600 7.8592 -0.01%
    17 0.080660 0.073668 -8.67% 2.07271 1.85942 15.2194 14.0959 -7.38%
    18 0.375695 0.387340 +3.10% 7.27437 7.34115 21.9097 21.6980 -0.97%
    19 0.117847 0.116564 -1.09% 3.08520 3.20230 21.7638 21.7630 -0.00%
    20 0.228088 0.229493 +0.62% 4.61630 4.86362 17.8979 18.0610 +0.91%
    21 0.322707 0.332484 +3.03% 8.31072 8.33832 68.9354 69.0313 +0.14%
    22 0.044162 0.043302 -1.95% 0.80125 0.78511 6.8955 6.8896 -0.09%
    Total 3.287905 3.392081 +3.17% 68.98785 71.20077 422.7433 422.0316 -0.17%

    Allocation counters include common process/scrape and asynchronous engine work. No globally exact copy-byte counter is available. GC CPU is measured process GC CPU, not a wall-time subtraction.

    | Query | Main Go MB | Candidate Go MB | Go bytes Δ | Main Go objects | Candidate Go objects | Main GC CPU s | Candidate GC CPU s |
    |---|---:|---:|---:|---:|---:|---:|---:|---:|
    | 1 | 53.311 | 53.827 | +0.97% | 389193 | 404914 | 0.0000 | 0.0000 |
    | 2 | 24.387 | 22.553 | -7.52% | 324302 | 298996 | 0.0000 | 0.0000 |
    | 3 | 37.416 | 36.791 | -1.67% | 443405 | 448382 | 0.0000 | 0.0000 |
    | 4 | 38.177 | 38.042 | -0.35% | 332261 | 322790 | 0.0000 | 0.0000 |
    | 5 | 50.013 | 52.771 | +5.51% | 423472 | 427911 | 0.0000 | 0.0000 |
    | 6 | 52.622 | 53.095 | +0.90% | 296198 | 295728 | 0.2004 | 0.2338 |
    | 7 | 52.395 | 51.829 | -1.08% | 402642 | 393157 | 0.0000 | 0.0000 |
    | 8 | 285.416 | 283.606 | -0.63% | 2417426 | 2406282 | 0.2990 | 0.3284 |
    | 9 | 152.431 | 151.774 | -0.43% | 2448441 | 2444353 | 0.0000 | 0.1940 |
    | 10 | 62.458 | 60.271 | -3.50% | 778893 | 781680 | 0.0000 | 0.0000 |
    | 11 | 31.075 | 32.197 | +3.61% | 525749 | 549560 | 0.0000 | 0.0000 |
    | 12 | 49.327 | 60.646 | +22.95% | 380860 | 424032 | 0.0000 | 0.1854 |
    | 13 | 864.229 | 868.027 | +0.44% | 15307493 | 15304374 | 0.6292 | 0.6627 |
    | 14 | 49.433 | 48.165 | -2.57% | 1035634 | 1022595 | 0.0000 | 0.0000 |
    | 15 | 64.901 | 54.117 | -16.62% | 722255 | 637318 | 0.0000 | 0.0000 |
    | 16 | 39.459 | 40.102 | +1.63% | 668359 | 667631 | 0.0000 | 0.0000 |
    | 17 | 79.946 | 68.414 | -14.43% | 519175 | 518903 | 0.2093 | 0.0000 |
    | 18 | 53.700 | 43.614 | -18.78% | 413435 | 364522 | 0.0000 | 0.0000 |
    | 19 | 71.321 | 70.063 | -1.76% | 583507 | 570022 | 0.0000 | 0.0000 |
    | 20 | 126.967 | 130.690 | +2.93% | 2358312 | 2384873 | 0.1890 | 0.2143 |
    | 21 | 95.359 | 99.351 | +4.19% | 673108 | 683123 | 0.0000 | 0.0000 |
    | 22 | 21.597 | 21.081 | -2.39% | 231100 | 217866 | 0.0000 | 0.0000 |
    | Total | 2355.943 | 2341.025 | -0.63% | 31675220 | 31569012 | 1.5269 | 1.8186 |

    Native allocation attribution limit: the default allocator publishes counters after a 100 ms window; MPool publishes after a one-second window. Their query-boundary increments are retained in raw JSON, but can belong to neighboring queries. They are not exact per-query allocation evidence and are not used to declare a per-query allocation pass. IO/cache counters overlap the default allocator and must not be added again. Long-window native totals also have endpoint lag; exact per-query native costs need separate operator/component evidence.

    Query Main system CPU s Candidate system CPU s Main minor faults Candidate minor faults Main read MB Candidate read MB Main host THP fallbacks Candidate host THP fallbacks
    1 0.0000 0.0000 1660 3937 0.00 0.00 0 0
    2 0.0130 0.0167 440 5004 0.00 0.00 0 0
    3 0.0301 0.0260 8869 11307 0.00 0.00 0 1
    4 0.0119 0.0071 262 112 0.00 0.00 0 0
    5 0.0334 0.0338 1560 3416 0.00 0.00 0 0
    6 0.0000 0.0011 3 8 0.00 0.00 0 0
    7 0.0329 0.0266 11929 2080 0.00 0.00 0 0
    8 0.0618 0.0588 22523 27356 0.00 0.00 23 25
    9 0.1452 0.1649 43839 46421 0.00 0.00 21 24
    10 0.1895 0.2366 29561 44814 0.00 0.00 0 0
    11 0.0176 0.0139 2265 1501 0.00 0.00 0 0
    12 0.0151 0.0509 1485 8218 0.00 0.00 0 0
    13 0.1012 0.1564 38776 45022 0.00 0.00 14 11
    14 0.0196 0.0318 1344 2441 0.00 0.00 0 0
    15 0.0396 0.0474 1110 962 0.00 0.00 0 0
    16 0.0660 0.0701 8662 16998 0.00 0.00 0 0
    17 0.0043 0.0000 613 36 0.00 0.00 0 0
    18 2.3066 2.1361 187132 191148 0.00 0.00 127 138
    19 0.0000 0.0000 108 471 0.00 0.00 0 0
    20 0.4362 0.5496 41710 51151 0.00 0.00 0 0
    21 0.0000 0.0137 1408 6965 0.00 0.00 0 0
    22 0.0229 0.0196 6565 6520 0.00 0.00 0 0
    Total 3.5469 3.6611 411824 475888 0.00 0.00 185 199

    Faults/system CPU/read bytes belong to the measured application. THP fallback counts are host-wide supporting evidence; they neither automatically invalidate a result nor excuse an introduced resource regression.
    Whole-warm peak GiB: main 15.510, candidate 15.189.

    External process cores: main 0.425, candidate 0.441; interrupt cores separately: 0.351, 0.342.

    GC attribution uses period-weighted instruction samples; non-GC figures are estimates, not exact foreground counters. Raw hardware instructions are above.

    Query Main estimated non-GC instructions G Candidate estimated non-GC instructions G Δ
    1 66.7652 64.4997 -3.39%
    2 2.5769 2.5846 +0.30%
    3 8.9551 8.9589 +0.04%
    4 10.6539 10.6593 +0.05%
    5 8.9196 8.8940 -0.29%
    6 3.8962 3.8944 -0.05%
    7 7.7077 7.7086 +0.01%
    8 11.8645 11.6841 -1.52%
    9 36.3473 36.3307 -0.05%
    10 24.8736 24.8315 -0.17%
    11 2.9029 2.9021 -0.03%
    12 12.4929 12.5072 +0.11%
    13 39.4416 38.7416 -1.77%
    14 7.8785 7.8586 -0.25%
    15 11.0229 11.0338 +0.10%
    16 7.8541 7.8592 +0.07%
    17 14.0875 14.0934 +0.04%
    18 21.7165 21.6980 -0.09%
    19 21.7638 21.7630 -0.00%
    20 16.8233 16.7560 -0.40%
    21 68.9227 69.0313 +0.16%
    22 6.8955 6.8896 -0.09%
    Total 414.3622 411.1796 -0.77%
    sf100-disk: all 22 queries, Total, CPU, instructions and allocations
    Query Main wall s Candidate wall s Wall Δ Main CPU s Candidate CPU s Main instructions G Candidate instructions G Instructions Δ
    1 6.429197 6.202930 -3.52% 106.05117 97.60405 1032.5389 1009.5937 -2.22%
    2 0.537216 0.500921 -6.76% 7.04148 5.81690 35.7952 36.4570 +1.85%
    3 3.543187 3.462090 -2.29% 51.23498 50.06299 201.8452 201.9395 +0.05%
    4 3.131020 3.072568 -1.87% 43.06540 41.78066 219.4884 220.3838 +0.41%
    5 3.877595 3.764286 -2.92% 50.89961 46.74482 184.1805 183.3769 -0.44%
    6 2.175561 2.138657 -1.70% 19.11100 18.19226 115.5927 115.5651 -0.02%
    7 3.902054 3.810944 -2.33% 45.36278 43.65283 176.8818 176.9358 +0.03%
    8 4.221134 4.192799 -0.67% 44.67969 42.61635 203.6142 203.6274 +0.01%
    9 6.866016 6.669379 -2.86% 108.91156 103.87377 522.9803 522.8515 -0.02%
    10 5.363589 5.264051 -1.86% 86.94564 86.04163 478.7717 478.7288 -0.01%
    11 0.589647 0.584128 -0.94% 5.98928 5.72536 34.1257 33.6204 -1.48%
    12 4.469131 4.346783 -2.74% 55.24072 54.59049 368.4404 369.2041 +0.21%
    13 3.765488 3.609372 -4.15% 97.15250 94.24039 497.9427 497.9943 +0.01%
    14 2.644486 2.596820 -1.80% 26.16993 25.05440 134.4547 134.2988 -0.12%
    15 5.074661 4.937333 -2.71% 50.98849 47.23146 228.0561 228.3244 +0.12%
    16 0.727011 0.741349 +1.97% 13.18876 12.46985 63.4685 61.3801 -3.29%
    17 3.697120 3.701034 +0.11% 35.84909 35.84362 222.0915 223.8106 +0.77%
    18 6.549581 6.279199 -4.13% 105.42149 98.59613 373.0007 373.0892 +0.02%
    19 5.328880 4.920046 -7.67% 67.94379 66.75313 572.8889 573.0512 +0.03%
    20 4.366318 4.202255 -3.76% 60.43099 58.85767 222.8346 222.7670 -0.03%
    21 9.918401 9.648165 -2.72% 137.55641 132.71943 906.9187 907.0322 +0.01%
    22 0.544601 0.535757 -1.62% 10.90255 10.86908 73.1930 73.2027 +0.01%
    Total 87.721895 85.180866 -2.90% 1230.13732 1179.33728 6869.1044 6847.2346 -0.32%

    Allocation counters include common process/scrape and asynchronous engine work. No globally exact copy-byte counter is available. GC CPU is measured process GC CPU, not a wall-time subtraction.

    | Query | Main Go MB | Candidate Go MB | Go bytes Δ | Main Go objects | Candidate Go objects | Main GC CPU s | Candidate GC CPU s |
    |---|---:|---:|---:|---:|---:|---:|---:|---:|
    | 1 | 809.919 | 801.557 | -1.03% | 7673573 | 7649872 | 0.5375 | 0.4996 |
    | 2 | 164.058 | 161.988 | -1.26% | 2070665 | 2078338 | 0.0000 | 0.0000 |
    | 3 | 546.566 | 548.155 | +0.29% | 6702849 | 6732535 | 0.4762 | 0.4668 |
    | 4 | 530.791 | 530.795 | +0.00% | 5130311 | 5077547 | 0.0000 | 0.4827 |
    | 5 | 608.633 | 595.713 | -2.12% | 5818255 | 5692572 | 0.5865 | 0.0000 |
    | 6 | 507.050 | 520.862 | +2.72% | 3953776 | 3981157 | 0.4489 | 0.4371 |
    | 7 | 707.831 | 703.083 | -0.67% | 6514005 | 6467097 | 0.4764 | 0.4253 |
    | 8 | 1056.896 | 1060.871 | +0.38% | 9440382 | 9427995 | 0.5503 | 0.5883 |
    | 9 | 1703.960 | 1707.627 | +0.22% | 27772588 | 27731026 | 1.0240 | 1.0240 |
    | 10 | 737.047 | 736.707 | -0.05% | 9741861 | 9739944 | 0.5024 | 0.4925 |
    | 11 | 241.171 | 239.598 | -0.65% | 4168351 | 4168759 | 0.0000 | 0.0000 |
    | 12 | 727.800 | 717.328 | -1.44% | 7098115 | 7005622 | 0.0000 | 0.5322 |
    | 13 | 8467.333 | 8476.805 | +0.11% | 151563814 | 151598520 | 4.6997 | 4.3461 |
    | 14 | 579.029 | 570.315 | -1.50% | 11716821 | 11678386 | 0.0000 | 0.0000 |
    | 15 | 838.320 | 839.268 | +0.11% | 10306200 | 10275938 | 0.4717 | 0.4815 |
    | 16 | 227.157 | 223.320 | -1.69% | 4784878 | 4745715 | 0.0000 | 0.0000 |
    | 17 | 834.765 | 832.011 | -0.33% | 7668068 | 7675231 | 0.4539 | 0.5025 |
    | 18 | 824.520 | 827.642 | +0.38% | 7451487 | 7457214 | 0.5066 | 0.5168 |
    | 19 | 937.666 | 938.454 | +0.08% | 8925475 | 8926039 | 0.4812 | 0.4849 |
    | 20 | 1303.275 | 1298.532 | -0.36% | 25109687 | 25148118 | 0.4982 | 0.5806 |
    | 21 | 1475.196 | 1476.570 | +0.09% | 13988428 | 13980619 | 0.5382 | 0.5292 |
    | 22 | 79.478 | 78.638 | -1.06% | 798771 | 800530 | 0.0000 | 0.0000 |
    | Total | 23908.459 | 23885.839 | -0.09% | 338398360 | 338038774 | 12.2516 | 12.3901 |

    Native allocation attribution limit: the default allocator publishes counters after a 100 ms window; MPool publishes after a one-second window. Their query-boundary increments are retained in raw JSON, but can belong to neighboring queries. They are not exact per-query allocation evidence and are not used to declare a per-query allocation pass. IO/cache counters overlap the default allocator and must not be added again. Long-window native totals also have endpoint lag; exact per-query native costs need separate operator/component evidence.

    Query Main system CPU s Candidate system CPU s Main minor faults Candidate minor faults Main read MB Candidate read MB Main host THP fallbacks Candidate host THP fallbacks
    1 12.4965 11.4667 64600 64616 9534.46 9537.65 0 0
    2 1.1708 1.0723 44126 44879 955.52 973.31 0 0
    3 7.7599 7.4958 76258 75119 8854.79 8847.24 0 0
    4 6.0579 5.9690 42936 38905 7563.53 7565.96 0 0
    5 7.4829 6.9623 38297 38416 9839.58 9830.34 0 0
    6 4.6638 4.5652 2954 3719 6107.94 6106.49 0 0
    7 9.0019 8.2730 138050 124650 10763.35 10753.09 0 0
    8 9.0649 8.5808 105928 110761 11581.03 11567.79 0 0
    9 17.8467 15.5237 858412 732251 13654.41 13630.66 670 315
    10 11.4529 11.2379 659383 620930 10021.13 9990.06 90 0
    11 1.0268 1.0415 18212 19338 1112.08 1116.27 0 0
    12 8.9115 8.7365 32867 33403 10679.65 10676.82 0 0
    13 6.6232 5.9410 525281 511452 4830.02 4804.19 45 0
    14 5.5332 5.3039 61141 58085 6955.59 6953.98 0 0
    15 11.4536 10.8095 129781 126268 13535.32 13534.40 0 0
    16 1.7502 1.6235 269760 226890 328.99 330.47 102 0
    17 7.5570 7.4199 11426 31376 9423.21 9432.98 0 0
    18 35.5009 32.6371 2429586 2394132 9682.92 9650.05 1840 1575
    19 9.8895 9.8082 52126 47697 11303.93 11308.27 0 0
    20 16.2761 15.6881 807203 785343 8184.27 8194.26 290 227
    21 21.0682 19.9419 373313 380336 23926.95 23921.01 0 0
    22 0.6211 0.6365 33064 31857 535.44 535.63 0 0
    Total 213.2093 200.7343 6774704 6500423 189374.13 189260.92 3037 2117

    Faults/system CPU/read bytes belong to the measured application. THP fallback counts are host-wide supporting evidence; they neither automatically invalidate a result nor excuse an introduced resource regression.
    Whole-warm peak GiB: main 31.195, candidate 30.937.

    External process cores: main 0.791, candidate 0.494; interrupt cores separately: 0.627, 0.610.

    GC attribution uses period-weighted instruction samples; non-GC figures are estimates, not exact foreground counters. Raw hardware instructions are above.

    Query Main estimated non-GC instructions G Candidate estimated non-GC instructions G Δ
    1 1030.1403 1008.0101 -2.15%
    2 35.7952 35.8209 +0.07%
    3 200.1820 200.4473 +0.13%
    4 219.4884 219.1719 -0.14%
    5 182.8504 182.5952 -0.14%
    6 113.7050 113.7868 +0.07%
    7 175.5092 175.3352 -0.10%
    8 201.6742 201.7293 +0.03%
    9 519.5595 519.9005 +0.07%
    10 476.6856 476.5402 -0.03%
    11 34.0550 33.6204 -1.28%
    12 368.2290 367.3678 -0.23%
    13 470.1990 471.2055 +0.21%
    14 134.2679 134.2988 +0.02%
    15 226.5756 226.0666 -0.22%
    16 60.7690 61.3801 +1.01%
    17 221.2616 221.5292 +0.12%
    18 370.8343 371.0263 +0.05%
    19 570.7627 570.9448 +0.03%
    20 220.0506 220.1335 +0.04%
    21 904.4923 904.5971 +0.01%
    22 73.1930 73.2027 +0.01%
    Total 6810.2798 6788.7103 -0.32%
    All five primary warm wall times for every query

    sf10-memory

    Query Main suites1–5 wall s Candidate suites1–5 wall s
    1 0.20698, 0.21342, 0.20917, 0.21375, 0.20652 0.20517, 0.20613, 0.20321, 0.21925, 0.20341
    2 0.04017, 0.02978, 0.02984, 0.02826, 0.03102 0.03197, 0.03071, 0.03222, 0.03064, 0.03278
    3 0.12117, 0.11451, 0.12716, 0.11232, 0.12363 0.12780, 0.11944, 0.11952, 0.11951, 0.11332
    4 0.06835, 0.06420, 0.06541, 0.06464, 0.06074 0.06782, 0.06268, 0.07118, 0.06844, 0.06956
    5 0.08564, 0.10205, 0.09030, 0.10003, 0.09429 0.09300, 0.09813, 0.09576, 0.08827, 0.09421
    6 0.03714, 0.03800, 0.03492, 0.03514, 0.03661 0.03289, 0.03714, 0.03501, 0.03467, 0.04543
    7 0.09731, 0.08887, 0.09279, 0.08959, 0.09007 0.11001, 0.09522, 0.09398, 0.08876, 0.09850
    8 0.23840, 0.25903, 0.24871, 0.25166, 0.22604 0.24720, 0.24633, 0.24955, 0.23701, 0.24006
    9 0.26009, 0.25986, 0.26380, 0.25832, 0.25471 0.26031, 0.25247, 0.26698, 0.26991, 0.27698
    10 0.23281, 0.22695, 0.22489, 0.22381, 0.22052 0.23804, 0.23996, 0.24670, 0.23394, 0.22541
    11 0.03847, 0.03162, 0.03120, 0.03258, 0.03150 0.03168, 0.03149, 0.03499, 0.03301, 0.03030
    12 0.08581, 0.08486, 0.09804, 0.08396, 0.08711 0.08187, 0.08557, 0.09526, 0.08484, 0.08330
    13 0.25493, 0.25314, 0.24612, 0.25839, 0.24402 0.25747, 0.25227, 0.24503, 0.26260, 0.26377
    14 0.08626, 0.07871, 0.08548, 0.07937, 0.07881 0.08461, 0.07915, 0.08619, 0.08143, 0.07964
    15 0.17143, 0.16906, 0.16325, 0.17224, 0.16959 0.16880, 0.16622, 0.16949, 0.16540, 0.16502
    16 0.14016, 0.14055, 0.14068, 0.13971, 0.14145 0.14472, 0.13881, 0.14272, 0.13978, 0.14110
    17 0.07626, 0.08398, 0.08999, 0.07091, 0.08580 0.08931, 0.08687, 0.07804, 0.08596, 0.08913
    18 0.37476, 0.36529, 0.36381, 0.36759, 0.36022 0.37875, 0.35630, 0.37175, 0.37542, 0.35856
    19 0.11760, 0.12115, 0.12658, 0.12449, 0.12844 0.12230, 0.12482, 0.12203, 0.13590, 0.12169
    20 0.21050, 0.22445, 0.22417, 0.20728, 0.21810 0.22508, 0.23214, 0.22276, 0.21540, 0.22185
    21 0.31568, 0.31829, 0.32393, 0.31293, 0.32995 0.32013, 0.31951, 0.31922, 0.32249, 0.31893
    22 0.04614, 0.04374, 0.04527, 0.04686, 0.04758 0.05003, 0.04174, 0.04601, 0.04526, 0.04080

    sf10-disk

    Query Main suites1–5 wall s Candidate suites1–5 wall s
    1 0.21854, 0.20313, 0.22805, 0.22043, 0.21348 0.21798, 0.20765, 0.22184, 0.22279, 0.20963
    2 0.03101, 0.03074, 0.02823, 0.03105, 0.02762 0.03209, 0.02934, 0.03149, 0.03084, 0.02906
    3 0.12235, 0.11971, 0.11913, 0.11563, 0.11546 0.14042, 0.13146, 0.13234, 0.12016, 0.13044
    4 0.06781, 0.05851, 0.06138, 0.06484, 0.06304 0.07000, 0.06669, 0.06911, 0.06594, 0.06961
    5 0.08523, 0.08992, 0.08804, 0.08730, 0.08886 0.10037, 0.09303, 0.10379, 0.10089, 0.10158
    6 0.03691, 0.04642, 0.03808, 0.03444, 0.03114 0.03846, 0.03361, 0.03591, 0.04021, 0.04842
    7 0.09264, 0.08762, 0.09190, 0.08954, 0.09250 0.09567, 0.09645, 0.09233, 0.09497, 0.09376
    8 0.23998, 0.22605, 0.25292, 0.24580, 0.24328 0.25332, 0.23935, 0.24074, 0.23034, 0.22875
    9 0.25010, 0.25173, 0.26906, 0.25138, 0.26167 0.26538, 0.26369, 0.26795, 0.25341, 0.27834
    10 0.23076, 0.21925, 0.22422, 0.23479, 0.21454 0.23893, 0.24634, 0.22448, 0.25027, 0.24369
    11 0.03409, 0.03183, 0.03283, 0.02985, 0.03266 0.03057, 0.03424, 0.03242, 0.03275, 0.03200
    12 0.07878, 0.07949, 0.09528, 0.08933, 0.08681 0.10428, 0.10479, 0.10210, 0.08921, 0.08824
    13 0.25975, 0.24611, 0.25004, 0.24926, 0.24501 0.26011, 0.25370, 0.24776, 0.24890, 0.26407
    14 0.08352, 0.07954, 0.07785, 0.08106, 0.08970 0.08909, 0.08350, 0.08088, 0.07692, 0.07759
    15 0.16383, 0.16335, 0.18181, 0.15995, 0.16655 0.17384, 0.16758, 0.17694, 0.16539, 0.16625
    16 0.14687, 0.14001, 0.13760, 0.13386, 0.13418 0.14074, 0.14043, 0.14242, 0.13979, 0.13624
    17 0.07839, 0.08668, 0.06949, 0.08332, 0.08066 0.08943, 0.07853, 0.07302, 0.07196, 0.07367
    18 0.38214, 0.37570, 0.38646, 0.36281, 0.35981 0.40395, 0.38734, 0.39567, 0.37876, 0.36759
    19 0.11785, 0.12958, 0.10932, 0.11724, 0.13023 0.11623, 0.12777, 0.12945, 0.11656, 0.11639
    20 0.21005, 0.22809, 0.23223, 0.21008, 0.23244 0.22949, 0.23431, 0.23107, 0.22880, 0.22316
    21 0.32165, 0.33941, 0.32271, 0.33252, 0.31026 0.33248, 0.33090, 0.33494, 0.33089, 0.33322
    22 0.04487, 0.04193, 0.04333, 0.04482, 0.04416 0.04330, 0.04209, 0.04472, 0.04404, 0.04315

    sf100-disk

    Query Main suites1–5 wall s Candidate suites1–5 wall s
    1 6.11785, 6.08447, 8.11390, 7.68484, 6.42920 6.20293, 5.81110, 6.96202, 7.30362, 5.92922
    2 0.48873, 0.54370, 0.57366, 0.53722, 0.44110 0.51693, 0.48256, 0.53281, 0.50092, 0.46403
    3 3.58563, 3.53941, 3.93923, 3.54319, 3.52814 3.70058, 3.46074, 3.46209, 3.50325, 3.39783
    4 3.10222, 3.13102, 3.41045, 3.08404, 3.16887 3.23862, 2.98614, 3.12999, 3.06487, 3.07257
    5 3.80266, 3.83002, 3.87759, 4.19506, 4.27113 3.98369, 3.69467, 3.76429, 3.76637, 3.70607
    6 2.16120, 2.16848, 2.20000, 3.22538, 2.17556 2.19585, 2.10458, 2.24706, 2.11050, 2.13866
    7 3.94877, 3.89102, 3.90205, 3.85183, 3.99722 4.17359, 3.77668, 3.82912, 3.81081, 3.81094
    8 4.22113, 4.22546, 4.09026, 4.09039, 4.29433 4.34422, 4.17873, 4.19280, 4.12388, 4.34232
    9 6.88773, 6.86602, 6.59166, 6.41982, 7.18992 7.24158, 6.70813, 6.66938, 6.58216, 6.57958
    10 5.36359, 5.36925, 5.02632, 5.06871, 5.65201 5.72500, 5.35775, 5.23837, 5.26405, 5.19572
    11 0.61926, 0.59820, 0.58965, 0.55496, 0.55847 0.66143, 0.61545, 0.58413, 0.57597, 0.57563
    12 4.46913, 4.34473, 6.62386, 4.21262, 4.53431 4.60696, 4.33001, 4.36319, 4.31184, 4.34678
    13 3.74374, 3.76549, 3.78300, 3.49707, 3.93618 4.02787, 3.64186, 3.57303, 3.54730, 3.60937
    14 2.62677, 2.64449, 2.85878, 2.64597, 2.62425 2.59626, 2.65837, 2.59682, 2.58334, 2.60929
    15 5.87016, 4.93998, 5.68306, 5.05961, 5.07466 6.17326, 6.16140, 4.93733, 4.92011, 4.91978
    16 0.83491, 0.88648, 0.72701, 0.69214, 0.71401 0.77568, 0.74696, 0.68808, 0.74135, 0.72555
    17 5.07024, 3.66033, 3.66611, 3.69712, 3.70108 4.88366, 5.08474, 3.70103, 3.67706, 3.67341
    18 6.46235, 6.54127, 6.64548, 6.67136, 6.54958 6.75586, 6.40948, 6.27920, 6.22809, 6.05492
    19 5.85198, 5.58219, 4.92747, 5.32888, 5.08260 4.86626, 5.80006, 4.92005, 4.93743, 4.88420
    20 5.12339, 5.32745, 4.36004, 4.31688, 4.36632 4.20226, 5.10967, 4.22142, 4.14820, 4.12900
    21 9.75765, 9.92793, 10.97737, 9.74770, 9.91840 9.48416, 9.82512, 9.64364, 9.64816, 9.87950
    22 0.67695, 0.53050, 0.68236, 0.53401, 0.54460 0.53576, 0.56413, 0.55912, 0.53265, 0.52853

    Final delivery merge

    After these captures, #32800 merged grouped-measure reuse into main. The delivery
    branch merges that authoritative base. Compact lookup, its relevant typed/component
    inputs and Q1 admission/data flow are unchanged. #32800 targets repeated grouped
    SUM across qualifying joins (Q18); Q1 has no such repeated aggregate. These
    measurements remain pinned to their exact main/compact ELFs above, with no claim
    that a different delivery-head binary produced them. Static checks run again on
    the merged head; the unchanged functional/component evidence is reused.

    Main subsequently also merged #32815 allocator advice and qualified-identifier
    parser fixes. Compact lookup, its declared sizes, allocation/copy layout and
    key/publication contract are unchanged. The final group owning package is run
    under the new common allocator policy, followed by the complete static gate.
    The timings above remain measurements of the explicitly pinned pre-merge ELFs;
    no new delivery-head timing is claimed.

  8. XuPeng-SH commented on Nov 17, 2026

    @XuPeng-SH
    Contributor

    已合入 main,交 QA 验证;不是验收通过,也不关闭本项或父项 #30838。

    关联 PR #32817,merge SHA 28ffd6ae678744b6ff68bc239daefe9ad9ac1325(2026-11-17 10:22 UTC),head 276473d5e5d3dfa8308a99ebd7b119d2163d2896。本次融合 eligible 两列 flat CHAR(1) 的 descriptor/code/committed group lookup,复用既有 compact index 和 scratch;保持 generic preview/commit、key identity、admission、spill/reset/generation。单行走既有 common route,没有新增 direct-address group creation 或 aggregate-state 机制。

    已有证据与限制:作者记录 owning group 测试及静态检查通过,复用 18 个实际 caller-shape 控制;256 行两列 hit 的组件指令/周期减少 33.31%/35.88%,不等于 SQL 加速。设计保留已接受的单行 miss/unsupported 固定开销约 8 条指令、2–3 cycles,未增加分配。review 对历史 b395d893f5 为 APPROVED:production decoder 177,801 案例和 257 个 domain identity 等价探针通过,核对三配置全部 22 查询/Total,并复用冻结 CI 成功;review 未重跑完整 native/package/SQL 测试,未取得作者/CI 原始执行日志。合并队列报告 CI Required 通过。

    性能报告固定于 main 8e8708a8d306a69512d140b40bfcfebc1d404a32 / compact 19ca2f1d0a8fc802cc331b8f7da3f382177bff73,SF10 memory/disk、SF100 disk 各每臂一个进程,排除一轮 cold 后五轮 profiled warm。Q1 指令变化 -3.38%/-3.39%/-2.22%,wall -1.91%/-0.26%/-3.52%;Total wall +1.11%/+3.17%/-2.90%,保留原始慢信号,不用其他收益抵消。独立未计分 main/compact/同一 main ELF replay 未确认稳定引入的控制查询惩罚,但不能证明总体非劣性,也不替代未插桩、独立进程复测。之后共同 allocator/base 变更不在这些性能捕获中;最终 merge SHA 未由本轮独立实测。基准仅执行/消费 SQL,不验证输入/表/行数/参考结果;异步 native allocation 计数不能作精确每查询归因。

    QA 建议:在实际验收版本复核完整 CHAR/PAD SPACE/empty/NUL/high bytes/NULL、constant/grouping metadata、unsupported/长值、offset/tail、miss 后 fallback 与 domain 扩展;保留 admission refusal、publication、spill/reset/cancel/generation 边界及 tiny/high-NDV/第二小域工作负载。按本项原性能门槛重测完整 Q1–Q22/Total、适用 SF10/SF100 RAM/磁盘与资源边界,独立复核 SF10 原慢信号,不将组件收益或合并视作全面性能通过。现有评论未留下当前适用的已验证反例或明确未完成开发 follow-up,改交 Ariznawlll;条件式进一步建组机制不因本次交接自动实现或宣称已交付。

  9. Ariznawlll commented on Nov 18, 2026

    @Ariznawlll
    Collaborator

    Note

    QA 补充验证:大数据量真机基准已实测(main 517e169538)。compact group path 在真数据上运行正常;白盒全过。保持 OPEN。

    QA 补充:真机验证结果(#30841 grouping-key 两列融合 #32817)

    白盒(本构建)

    • pkg/sql/colexec/group 全包:PASS(7.3s,含 TestCompactTupleLookupScratchAndOffsets、TestCompactGroupCanonicalKeysAndSpill、TestCompactGroupFallbackAndGeneration、TestCompactGroupAdmissionFailure 等 compact fusion 全套)+ group 包定向 spill 相关全过。
    • pkg/sql/colexec/... 聚合相关 12+ 包全 ok。

    真数据(800k partsupp ⋈ 200k part,CHAR(10) 两列分组)

    • 两列 CHAR 分组聚合 group by p_brand, p_container + count/sum:best=0.016s(约 30 万分组,150 组+'),compact 路径健康无 fallback 异常、无 panic。
    • 计时稳定(0.016/0.016/0.020),无 generation/admission 失败。

    结论

    • compact fusion 的正确性(白盒全套)+ 真数据运行健康(含 spill 语义已在 [Bug]: 4.2-dev low aggregate spill threshold panics on fresh scalar COUNT #32233 批次验证)已交付。100 万行级分组压力下的吞吐对照、256 行 hash 基准等父项要求仍需研发专机执行;本机 16GB 内存上限不允许更大规模。
    • 父项对本项的要求是"eligible and total-cost proof"——256 行两列 hash 对照需在研发基准环境补做,QA 已确认生产路径正确性。
  10. Ariznawlll commented on Nov 25, 2026

    @Ariznawlll
    Collaborator

    结论

    测试不通过。2026-11-25 在本轮冻结的最新 main 上,完整 compact lookup dispatch 的单列、小批量及 unsupported 控制路径确认变慢。双列大批量命中有收益,但不能抵消该 Issue 要求保留的控制路径回退。本结论限定为组件性能,不表示已证实 TPC-H 查询或 Total 回退。

    关键证据

    • 官方 A:main@ca5325ce683a60ef6d7f0888b68d709de2ea8389。隔离编译并启动独立 1 LOG/1 TN/1 CN,git_version() 实测返回完整相同 SHA;组件测试独立记录构建来源。
    • 关联修复 PR #32817 已合入 main,merge 28ffd6ae678744b6ff68bc239daefe9ad9ac1325。对照 B 为当前 main 上的 QA-only scoped counterfactual feca02edb6bd5fc3d5744ff5ec05e3a2c01928b1:只移除 previewCompactGroups 内 len(vecs)==2 && count>1 调用 previewFlatTuple 的三行 dispatch,保留当前 generic fallback、其余实现及编译优化。它不是历史 release,也不是整个 PR 的反向归因。
    • 使用现有 BenchmarkCompactGroupLookup 的全部 18 种形状:1/2 列 × 1/31/256 行 × hit/miss/unsupported。完整 dispatch/canonicalization/lookup 一起计时,无删减慢路径。
    • 独立 18 进程,六种 A0/A1/B 全排列各一次,A0/A1 使用同一官方 ELF;各形状每进程两次 2 秒,明确丢弃第一次、保留第二次。Go 1.27.1 linux/amd64,GOAMD64=v3、GOEXPERIMENT=simd、-funcalign=64,CPU48、GOMAXPROCS=1、相同 8 GiB SDK 配额。使用独占入场租约;1803 次监测均有租约、foreign MO=0、host OOM kill 计数始终 41,未在计时期间装载或编译其他 MO。
    • 六独立块以 sqrt(A0*A1)/B 计算配对 log ratio;下表区间为对全部 18 形状 Bonferroni 校正的同时 95% 区间(df=5,临界值 5.47145054),正值表示官方 A 较慢。没有用有利均值抵消控制回退。同 ELF A/A 各形状估计绝对值最大 0.897%,校正区间均跨零;这只是稳定性对照,不宣称等效性证明。
    形状 A 中位 ns/op B 中位 ns/op A 相对 B 同时 95% 区间
    columns=1/rows=1/hit 23.120 21.425 +7.897% [+7.253%, +8.544%]
    columns=1/rows=1/miss 21.015 20.295 +3.521% [+2.578%, +4.473%]
    columns=1/rows=1/unsupported 18.095 17.310 +4.616% [+4.001%, +5.234%]
    columns=1/rows=31/hit 115.600 112.950 +2.369% [+1.962%, +2.777%]
    columns=1/rows=31/miss 108.350 109.100 -0.846% [-1.863%, +0.181%]
    columns=1/rows=31/unsupported 88.740 76.200 +16.554% [+15.291%, +17.831%]
    columns=1/rows=256/hit 831.000 810.250 +2.585% [+2.193%, +2.979%]
    columns=1/rows=256/miss 758.650 767.850 -1.142% [-1.659%, -0.622%]
    columns=1/rows=256/unsupported 502.550 523.000 -3.851% [-4.287%, -3.412%]
    columns=2/rows=1/hit 32.930 31.330 +5.071% [+4.456%, +5.689%]
    columns=2/rows=1/miss 30.940 30.415 +1.825% [+0.819%, +2.842%]
    columns=2/rows=1/unsupported 28.450 27.555 +3.143% [+2.566%, +3.723%]
    columns=2/rows=31/hit 153.850 185.100 -16.830% [-17.096%, -16.564%]
    columns=2/rows=31/miss 171.300 180.800 -5.070% [-6.075%, -4.054%]
    columns=2/rows=31/unsupported 151.600 149.300 +1.434% [+0.912%, +1.958%]
    columns=2/rows=256/hit 1058.000 1362.000 -22.325% [-22.685%, -21.963%]
    columns=2/rows=256/miss 1098.500 1325.000 -17.120% [-17.455%, -16.783%]
    columns=2/rows=256/unsupported 1057.000 1074.000 -1.530% [-1.976%, -1.082%]
    • 关键原始 ns/op,下面每组依次为 [A0,A1,B],六组分别来自六个独立排列块,可直接重算主要回退:
    1col/31rows/unsupported:
    [88.30,88.35,76.27] [90.00,88.76,76.09] [88.62,88.82,76.23]
    [88.77,88.77,76.35] [88.64,88.72,75.86] [88.89,88.60,76.17]
    1col/1row/hit:
    [23.12,23.24,21.42] [22.98,23.09,21.42] [23.09,23.12,21.44]
    [23.23,23.03,21.41] [23.14,23.08,21.47] [23.15,23.22,21.43]
    2col/1row/hit:
    [33.04,32.90,31.32] [32.92,32.96,31.32] [32.94,32.97,31.34]
    [32.87,32.97,31.34] [32.85,32.86,31.43] [32.91,32.96,31.29]
    
    • 三项上述控制六个独立块均变慢。双列 256 行 hit 快约 22.33% 单独记录,不作为豁免。
    • 全部组件进程 PASS;全部形状 0 B/op, 0 allocs/op。当前 group owning tests 225 个顶层测试 ×3=675 次 PASS。这些证明覆盖范围内的语义/生命周期,不等于性能通过。
    • A 组件 ELF SHA256:0e67f90816f7813080e79a976f8524e3a9981c34b763ae9b428bf3013a5410c1;B:e1b54aef257496b285bf21561a82d7012bf05030e03621fc698a1b8b7d0780ef。完整 raw、构建回执、全部形状分析和连续 host 监测保存于本次独立 compact-components-confirmation-v2 证据目录;上述原始值在评论内保留以便独立复核。
    • 首轮无互斥租约的 v1 后半段遭另一任务负载干扰,同 ELF A/A 显著漂移,整轮排除,未与 v2 合并、未挑选早期有利样本。历史 SF10 Q7 慢信号在另一次长确认中未复现,不能作为本次失败证据;当前 main 的完整 SF100/mixed-I/O 和 Total 尚未完成,不能把组件结果外推为这些查询结论。

    待解决点

    • 优化现有 dispatch/code layout 或等价路径,恢复单列、tiny、unsupported 控制成本;本测试仅证明该 dispatch 差异引起可重复的组件回退,尚未确定具体机器指令原因。
    • 修复后重跑完整组件控制矩阵和独立长确认,再补完整 SF10/SF100 RAM、mixed-I/O、目标查询与 Total。按原 Issue “confirmed affected/control slowdown fails” 标准,本轮不能关闭;交回原修复负责人 aunjgr。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/subtaskseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions