N functions with distinct compile-time constants, no errors. Scaling null: n scales independent declarations; ideal cost is O(n).
bucket: diagnostics · 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× |
|---|---|---|---|---|---|---|
| 400–3200 | 14 | 0.95 | 1.000 | 28 | 118 | 1.78× |
compileInner grows by 90 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=400 | t@N=3200 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| generateIR | 8 | 56 | +48 | 53% | 0.98× | 0.97 |
| SemanticChecking | 11 | 37 | +26 | 29% | 0.92× | 0.93 |
| parseTranslationUnit | 2 | 18 | +16 | 17% | 1.09× | 1.07 |
Near-constant (≤2% of growth each): generateOutput (self) (2→3 ms), performMandatoryEarlyInlining (0→2 ms), specializeModule (1→1 ms), linkIR (0→1 ms), simplifyIR (1→1 ms), frontEndExecute (self) (1→0 ms), compileInner (self) (0→0 ms), legalizeExistentialTypeLayout (0→0 ms), legalizeResourceTypes (0→0 ms), performForceInlining (0→0 ms), unrollLoopsInModule (0→0 ms), linkAndOptimizeIR (self) (1→0 ms).
| N | compileInner | frontEndExecute | SemanticChecking |
|---|---|---|---|
| 400 | 28 | 22 | 11 |
| 800 | 41 | 34 | 15 |
| 1600 | 66 | 60 | 22 |
| 3200 | 118 | 111 | 37 |