`n` functions, each a long arithmetic expression whose operands alternate among float/int/uint (typed locals and literals of differing kinds). Every `+`/`-`/`*` must resolve the builtin arithmetic operator overload set and insert an implicit conversion to the common type — the "checking the types of 1 and 2 in 1 + 2" cost, multiplied across many nodes. Contrast `parse`, whose same-type float expressions skip overload ranking. Module mode -> the signal is SemanticChecking, not codegen. Scaling null: n scales fixed-length expressions; ideal typecheck cost is O(n).
bucket: typecheck · 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× |
|---|---|---|---|---|---|---|
| 200–1600 | 9 | 0.95 | 0.999 | 135 | 927 | 1.99× |
compileInner grows by 792 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=200 | t@N=1600 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| SemanticChecking | 104 | 678 | +575 | 73% | 0.92× | 0.92 |
| generateIR | 23 | 182 | +160 | 20% | 1.07× | 1.01 |
| generateOutput (self) | 6 | 45 | +39 | 5% | 1.12× | 1.10 |
| parseTranslationUnit | 2 | 20 | +18 | 2% | 1.09× | 1.05 |
Near-constant (≤2% of growth each): frontEndExecute (self) (0→1 ms), compileInner (self) (0→0 ms).
| N | compileInner | SemanticChecking | frontEndExecute |
|---|---|---|---|
| 200 | 135 | 104 | 129 |
| 400 | 246 | 185 | 233 |
| 800 | 465 | 343 | 442 |
| 1600 | 927 | 678 | 882 |