← all workloads

parse

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)

Phase composition vs N (stacked sub-counters)

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.

parse — phase composition vs N (v2026.12, median ms) parse 8.2× over N 250→2000 0.0 196 391 250 500 1000 2000 N parse — parseTranslationUnit parse — SemanticChecking parse — generateIR parse — frontEndExecute (self) parse — generateOutput (self) parse — compileInner (self) phase buckets parseTranslationUnit SemanticChecking generateIR frontEndExecute (self) specializeModule simplifyIR linkIR unrollLoopsInModule legalizeResourceTypes legalizeExistentialTypeLayout performMandatoryEarlyInlining performForceInlining linkAndOptimizeIR (self) emitEntryPointsSourceFromIR generateOutput (self) compileInner (self)

Scaling analysis

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 rangefloor (ms)k (work)fit R²t(Nmin)t(Nmax)top-2×
250–2000141.170.999443622.07×

Growth attribution (N=250 → N=2000)

compileInner grows by 318 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.

buckett@N=250t@N=2000Δ msshare× lin∝Nk
generateIR17148+13141%1.12×1.07
SemanticChecking16122+10633%1.24×1.20
generateOutput (self)758+5116%1.21×1.14
parseTranslationUnit433+299%1.06×1.05

Near-constant (≤2% of growth each): compileInner (self) (0→2 ms), frontEndExecute (self) (0→0 ms).

Sweep numbers (median ms)

NcompileInnerparseTranslationUnitfrontEndExecute
25044437
50087873
100017517148
200036233303