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 | 9 | 0.78 | 0.995 | 40 | 165 | 1.75× |
compileInner grows by 125 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 |
|---|---|---|---|---|---|---|
| SemanticChecking | 25 | 87 | +62 | 49% | 0.67× | 0.67 |
| generateIR | 8 | 55 | +47 | 37% | 0.93× | 0.93 |
| parseTranslationUnit | 2 | 17 | +15 | 12% | 1.13× | 1.06 |
Near-constant (≤2% of growth each): generateOutput (self) (2→3 ms), linkIR (1→2 ms), performMandatoryEarlyInlining (0→1 ms), compileInner (self) (0→0 ms), frontEndExecute (self) (1→0 ms), simplifyIR (0→0 ms), specializeModule (0→0 ms), legalizeExistentialTypeLayout (0→0 ms), legalizeResourceTypes (0→0 ms), performForceInlining (0→0 ms), linkAndOptimizeIR (self) (0→0 ms).
| N | compileInner | frontEndExecute | SemanticChecking |
|---|---|---|---|
| 400 | 40 | 36 | 25 |
| 800 | 57 | 53 | 33 |
| 1600 | 94 | 89 | 52 |
| 3200 | 165 | 159 | 87 |