← all workloads

sema_generics

n distinct generic functions with interface constraints, each instantiated at several concrete types. Stresses semantic checking, generic constraint satisfaction and instantiation in the front-end. Scaling null: n scales instantiation count against a fixed generic set; ideal checking cost is O(n).

bucket: sema  ·  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.

sema_generics — phase composition vs N (v2026.13, median ms) sema_generics 7.0× over N 125→1000 0.0 473 947 125 250 500 1000 N sema_generics — parseTranslationUnit sema_generics — SemanticChecking sema_generics — generateIR sema_generics — frontEndExecute (self) sema_generics — generateOutput (self) sema_generics — 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×
125–1000100.971.0001258772.00×

Growth attribution (N=125 → N=1000)

compileInner grows by 751 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=125t@N=1000Δ msshare× lin∝Nk
SemanticChecking107717+61081%0.92×0.94
generateIR12119+10714%1.40×1.13
generateOutput (self)529+253%1.21×1.16

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

Sweep numbers (median ms)

NcompileInnerSemanticCheckingfrontEndExecute
125125107121
250229197221
500438372422
1000877717847