`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 | 11 | 1.01 | 1.000 | 52 | 349 | 2.01× |
compileInner grows by 298 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 | 25 | 146 | +121 | 41% | 0.96× | 0.95 |
| generateIR | 18 | 137 | +118 | 40% | 1.01× | 0.99 |
| generateOutput (self) | 6 | 47 | +41 | 14% | 1.24× | 1.16 |
| parseTranslationUnit | 2 | 20 | +18 | 6% | 1.07× | 1.06 |
Near-constant (≤2% of growth each): frontEndExecute (self) (0→0 ms).
| N | compileInner | SemanticChecking | frontEndExecute |
|---|---|---|---|
| 200 | 52 | 25 | 46 |
| 400 | 92 | 42 | 81 |
| 800 | 173 | 74 | 152 |
| 1600 | 349 | 146 | 304 |