Skip to content

refactor(benchmarks): centralize workload policy - #18

Merged
thejustinwalsh merged 2 commits into
feat/benchmark-workload-examplesfrom
feat/benchmark-workload-catalog
Aug 4, 2026
Merged

refactor(benchmarks): centralize workload policy#18
thejustinwalsh merged 2 commits into
feat/benchmark-workload-examplesfrom
feat/benchmark-workload-catalog

Conversation

@thejustinwalsh

@thejustinwalsh thejustinwalsh commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make one typed catalog authoritative for all nine live benchmark workloads, including Main and Presentation defaults, font policy, controls, interaction, preload, and surface kind
  • normalize unknown workload URLs within the selected mode before font and control policy execute
  • derive runtime resets and benchmark workload metadata from the catalog instead of parallel string switches
  • move technique-invariant text styling and color motion below workloads/shared, with a boundary test rejecting static and dynamic renderer imports from workload modules
  • classify loader/Worker parity as conformance and isolate direct baker/shaper Wasm imports behind one shared selected-ABI adapter
  • record the benchmark-driven public API audit and defer grouped multi-Text publication until a delayed-peer probe proves a product need

Why

Workload identity and defaults were duplicated across URL parsing, runtime state, controls, and navigation. An unknown or newly added workload could therefore render a fallback scene while retaining unrelated font or control state. Example modules also depended back on renderer implementation helpers, and the low-level target hierarchy described a shared conformance/measurement ABI adapter as measurement-only.

This change establishes the policy and dependency boundary before the remaining workload scene and route extraction. Renderer, canvas, RAF, GPU timing, and telemetry ownership stay inside the benchmark's persistent host; no renderer-specific package API is added.

Verification

  • mise exec -- pnpm benchmarks:check
  • mise exec -- pnpm docs:check
  • 49 benchmark test files / 278 tests passed
  • benchmark lint, formatting, type checks, package-size gates, and production build passed
  • focused workload boundary and shared-helper suites passed after the second commit
  • both commits are SSH-signed with the configured maintainer identity

Stacked on #17.

@thejustinwalsh
thejustinwalsh marked this pull request as ready for review August 3, 2026 15:57
@thejustinwalsh
thejustinwalsh force-pushed the feat/benchmark-workload-catalog branch from e9ab180 to 6063354 Compare August 4, 2026 01:44
@thejustinwalsh
thejustinwalsh merged commit 996345b into main Aug 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant