Large but semantically trivial source: many functions, each a long arithmetic expression. Stresses lex/parse with cheap sema. Scaling null: n scales statement count; ideal parse cost is O(n).
bucket: parse · 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× |
|---|---|---|---|---|---|---|
| 250–2000 | 9 | 0.99 | 1.000 | 205 | 1555 | 2.00× |
compileInner grows by 1350 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=250 | t@N=2000 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| SemanticChecking | 166 | 1220 | +1054 | 78% | 0.97× | 0.97 |
| generateIR | 27 | 242 | +216 | 16% | 1.18× | 1.07 |
| generateOutput (self) | 8 | 58 | +50 | 4% | 1.14× | 1.09 |
| parseTranslationUnit | 4 | 34 | +30 | 2% | 1.11× | 1.08 |
Near-constant (≤2% of growth each): compileInner (self) (0→0 ms), frontEndExecute (self) (0→0 ms).
| N | compileInner | parseTranslationUnit | frontEndExecute |
|---|---|---|---|
| 250 | 205 | 4 | 197 |
| 500 | 393 | 8 | 379 |
| 1000 | 777 | 16 | 749 |
| 2000 | 1555 | 34 | 1496 |