n differentiable functions arranged in bounded-depth groups, each group differentiated in both forward and reverse mode, plus a differentiable generic. Stresses the autodiff IR transform (inside linkAndOptimizeIR) and the front-end checking of [Differentiable]. Scales by breadth. Scaling null: n scales group breadth with depth bounded by _GROUP_DEPTH, so ideal autodiff cost is O(n).
bucket: autodiff · 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× |
|---|---|---|---|---|---|---|
| 25–200 | 11 | 0.92 | 0.996 | 135 | 865 | 2.07× |
compileInner grows by 730 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=25 | t@N=200 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| generateOutput (self) | 27 | 290 | +263 | 36% | 1.37× | 1.17 |
| specializeModule | 37 | 263 | +226 | 31% | 0.96× | 0.94 |
| simplifyIR | 12 | 78 | +65 | 9% | 0.89× | 0.89 |
| SemanticChecking | 31 | 90 | +59 | 8% | 0.59× | 0.58 |
| linkAndOptimizeIR (self) | 10 | 65 | +55 | 8% | 0.95× | 0.95 |
Also growing (below top-5): generateIR (+34 ms, 5%).
Near-constant (≤2% of growth each): legalizeExistentialTypeLayout (1→10 ms), legalizeResourceTypes (1→8 ms), linkIR (3→6 ms), performMandatoryEarlyInlining (1→5 ms), performForceInlining (0→3 ms), unrollLoopsInModule (0→1 ms), parseTranslationUnit (0→1 ms), frontEndExecute (self) (0→1 ms), compileInner (self) (0→0 ms).
| N | compileInner | linkAndOptimizeIR | frontEndExecute |
|---|---|---|---|
| 25 | 135 | 65 | 43 |
| 50 | 227 | 115 | 56 |
| 100 | 418 | 217 | 83 |
| 200 | 865 | 438 | 137 |