`n` structs each conforming to a shared interface. Stresses interface conformance checking / witness synthesis in the front end (compiled to a .slang-module so the signal is sema, not codegen). Scaling null: n scales conforming structs against ONE interface; ideal checking cost is O(n).
bucket: sema · mode: module · flags: (none)
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× |
|---|---|---|---|---|---|---|
| 600–4800 | 11 | 1.14 | 1.000 | 58 | 519 | 2.13× |
compileInner grows by 461 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=600 | t@N=4800 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| generateOutput (self) | 17 | 178 | +161 | 35% | 1.35× | 1.18 |
| generateIR | 22 | 179 | +157 | 34% | 1.09× | 1.04 |
| SemanticChecking | 15 | 124 | +109 | 24% | 1.27× | 1.22 |
| parseTranslationUnit | 4 | 37 | +33 | 7% | 1.06× | 1.04 |
Near-constant (≤2% of growth each): compileInner (self) (0→1 ms), frontEndExecute (self) (0→0 ms).
| N | compileInner | SemanticChecking | frontEndExecute |
|---|---|---|---|
| 600 | 58 | 15 | 41 |
| 1200 | 116 | 30 | 81 |
| 2400 | 243 | 61 | 166 |
| 4800 | 519 | 124 | 340 |