← 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.5, median ms) sema_generics 7.3× over N 125→1000 0.0 469 937 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–100090.990.9991198682.05×

Growth attribution (N=125 → N=1000)

compileInner grows by 749 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
SemanticChecking101700+59880%0.94×0.95
generateIR11123+11215%1.44×1.15
generateOutput (self)433+284%1.29×1.21

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

Sweep numbers (median ms)

NcompileInnerSemanticCheckingfrontEndExecute
125119101114
250219187211
500424358408
1000868700834