n constant buffers, each with a structurally rich payload — vectors, matrices, an array of a nested `Light` struct, a nested `Material` struct and a scalar array. This is the only workload with a large, deeply-typed shader *parameter interface* (every other workload's interface is a single RWStructuredBuffer), so it is the one stressor for the parameter binding / layout-assignment engine and — with `-reflection-json` (see the spec's reflection_json flag) — the reflection serializer, the layout/reflection path no other workload covers. Scales by breadth = number of parameter blocks the layout engine must place and reflect. Note: layout is computed during compileInner regardless of the flag (so compileInner is the holistic signal); -reflection-json additionally runs the serializer, which is cheap today but tracked here for regression coverage. Scaling null: n scales parameters; ideal layout cost is O(n).
bucket: reflection_layout · mode: target · flags: -target spirv -emit-spirv-directly
compileInner split into phase buckets (named leaves + (self) residuals) stacked across the sweep sizes — the top edge is compileInner, so you can see which phase drives the scaling.
floor-subtracted power-law fit (t − floor) = a·Nk; floor = the minimal workload (fixed per-compile cost), k the global exponent, top-2× the local high-end doubling ratio.
| N range | floor (ms) | k (work) | fit R² | t(Nmin) | t(Nmax) | top-2× |
|---|---|---|---|---|---|---|
| 30–240 | 10 | 1.40 | 0.991 | 47 | 681 | 3.16× |
compileInner grows by 634 ms across the sweep; the mutually-exclusive phase buckets below partition that growth exactly (no nested-timer double counting). × lin is the same metric as the top-level panels, per bucket: the end point vs a linear expectation anchored to the bucket's share of the minimal floor and fitted on the low-N half — 1.0 = grew exactly linearly, >1 bends up. The super-linearity lives where × lin (and k) are red.
| bucket | t@N=30 | t@N=240 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| SemanticChecking | 16 | 246 | +230 | 36% | 2.63× | 1.50 |
| linkAndOptimizeIR (self) | 5 | 121 | +116 | 18% | 2.68× | 1.56 |
| generateOutput (self) | 7 | 96 | +90 | 14% | 2.21× | 1.44 |
| legalizeExistentialTypeLayout | 1 | 40 | +39 | 6% | 4.23× | 1.84 |
| legalizeResourceTypes | 1 | 39 | +38 | 6% | 4.39× | 1.87 |
Also growing (below top-5): simplifyIR (+31 ms, 5%), generateIR (+22 ms, 3%), frontEndExecute (self) (+17 ms, 3%), compileInner (self) (+14 ms, 2%), parseTranslationUnit (+13 ms, 2%).
Near-constant (≤2% of growth each): specializeModule (1→11 ms), performForceInlining (1→10 ms), linkIR (1→7 ms), performMandatoryEarlyInlining (0→2 ms), unrollLoopsInModule (0→0 ms).
| N | compileInner | frontEndExecute | generateOutput |
|---|---|---|---|
| 30 | 47 | 24 | 21 |
| 60 | 90 | 42 | 44 |
| 120 | 215 | 91 | 116 |
| 240 | 681 | 305 | 359 |