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 | 14 | 1.08 | 0.987 | 146 | 1269 | 2.53× |
compileInner grows by 1123 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 |
|---|---|---|---|---|---|---|
| simplifyIR | 19 | 330 | +311 | 28% | 2.36× | 1.39 |
| generateOutput (self) | 28 | 335 | +307 | 27% | 1.55× | 1.22 |
| specializeModule | 36 | 285 | +249 | 22% | 1.09× | 1.00 |
| linkAndOptimizeIR (self) | 11 | 120 | +109 | 10% | 1.50× | 1.18 |
| SemanticChecking | 31 | 87 | +56 | 5% | 0.59× | 0.58 |
Also growing (below top-5): generateIR (+32 ms, 3%), legalizeExistentialTypeLayout (+26 ms, 2%), legalizeResourceTypes (+25 ms, 2%).
Near-constant (≤2% of growth each): linkIR (3→6 ms), performMandatoryEarlyInlining (1→3 ms), performForceInlining (0→3 ms), parseTranslationUnit (0→1 ms), frontEndExecute (self) (1→1 ms), unrollLoopsInModule (0→1 ms), compileInner (self) (0→0 ms).
| N | compileInner | linkAndOptimizeIR | frontEndExecute |
|---|---|---|---|
| 25 | 146 | 73 | 44 |
| 50 | 245 | 133 | 55 |
| 100 | 502 | 293 | 83 |
| 200 | 1269 | 802 | 133 |