Skip to content

[lynx-js-framework-benchmark] Rescue storms: a framework-neutral commit-coalescing contract #201

Open

Description

@Huxpro

Relay issue

Work for Huxpro/lynx-js-framework-benchmark. Its METHODOLOGY.md already names the gap this closes: "Update/select storms are archived experiments, not featured workload cases. Existing apps differ in whether intermediate ticks must commit or may coalesce to the same final state; until one framework-neutral contract exists, storm values do not enter current runs or rankings."

Why it matters

The nine featured CPU workloads are point mutations. Real steady-state load is mixed-width — bursts of small targeted updates, occasional wide sweeps (whole-column refresh, reorder) — and it is exactly where architectural bets diverge: slot-dispatch/compiled-delta designs should win narrow updates, batch-diff designs may amortize wide ones better. Without a storm contract, the benchmark cannot see whether that crossover exists or where it sits.

The proposal: make coalescing policy part of the case declaration

Define the contract as observable commit semantics declared per case, verified black-box like everything else:

  • commit: "every-tick" — each storm tick must become an observable committed frame; the predicate samples per tick, and a framework that coalesces fails the predicate (that is a result, not a DNF).
  • commit: "final-state" — only the terminal state is asserted; coalescing is explicitly legal and how much each entry coalesces becomes a reported observable (frames committed / ticks issued), not a fairness hole.
  • Storm shape parameters live in the driver contract, versioned and shared: tick interval, burst length, mutation width per tick (1 row / 10% / full-column), seeded like everything else.
  • Both flavors run per entry; neither is folded into the js-framework weighted score (that score stays formula-parity with upstream). Storms report as their own suite with the wire meter attached — bytes-per-tick under storm is the dual-thread number nothing else surfaces.

Acceptance

The archived storm experiments re-enter as featured cases under the declared contract, every current entry passes the predicate under at least final-state, and the site shows committed-frames/ticks beside latency so coalescing is visible instead of contested.

Activity

  1. Huxpro commented on Aug 26, 2026

    @Huxpro
    OwnerAuthor

    Benchmark implementation tracking: Huxpro/lynx-js-framework-benchmark#30

    Three corrections are required by the benchmark contract rather than being changed silently:

    1. The archived Update storm / Select storm buttons are app-authored implementations. They cannot be promoted as the neutral contract because their scheduling and render barriers differ by framework. The featured suite will instead use one shared /storm driver to issue existing standard black-box actions with real pointer input.
    2. An every-tick semantic miss is not a DNF. If the terminal state arrives, the run retains elapsed time, issued ticks, observed committed frames, wire totals, and contractPass=0 as descriptive contract-failure data. Only timeout/driver failure is DNF.
    3. The current common black-box surface supports one-row selection and 10%-column update. It does not expose a full-column refresh. The first contract will type the mutation-width dimension but admit only those two standard shapes; full-column stays unsupported until there is a separate shared standard action. We will not add a framework-specific proxy.

    The two policies use the same versioned stimulus declaration. coalescingRatio and bytes-per-tick will be collect-time derivatives from aligned raw samples. Ordinary table/startup/pipeline pages remain byte-isolated, and storm results stay outside the js-framework weighted score.

  2. Huxpro commented on Aug 26, 2026

    @Huxpro
    OwnerAuthor

    Implementation is available in Huxpro/lynx-js-framework-benchmark#31 (stacked after #200). It uses the shared /storm driver and the corrected black-box shapes described above. Real 7-entry evidence: final-state passed 14/14 update/select cells with 0 DNF; every-tick retained 14/14 semantic contract failures with 0 DNF. The dedicated suite is excluded from the js-framework weighted score.

  3. Huxpro commented on Aug 30, 2026

    @Huxpro
    OwnerAuthor

    Status review: the implementation is real and good — it needs a rebase, fresh evidence, and it has quietly become E3's oracle

    Reviewed benchmark PR #31 and the two correction comments above. Verdict on the work itself: the three contract corrections were right (shared /storm driver over app-authored buttons; every-tick miss as contractPass=0 descriptive data rather than DNF; typing full-column but admitting only the two shared shapes), and the 7-entry evidence (final-state 14/14, every-tick 14/14 retained contract failures, 0 DNF) shows the contract executes. Three follow-ups, in order:

    1. Rebase: [lynx-perf-s3-3] Verify current-head cold/steady acceptance #29 landed on main (dedfb41); perf(lynx): cut keyed component materialization cost #31 still bases on the pre-merge branch head. Rebase onto main before anything else — it is the root of the perf(lynx): cut keyed component materialization cost #31→perf(lynx): lock teardown and storm constants #33→perf(lynx): frame-align background commit dispatch #35 stack, so it moves first.
    2. The evidence is stale twice over. It was collected 2026-08-26: pre-chore: sync new-lynx with upstream octane v0.1.47 (d5175ca8) #229/fix(lynx): two unbounded main-to-background replies #233 (Octane cells carry since-fixed pathologies) and pre-regime-lanes (perf(lynx): lazy-load the main-thread worklet bridge #41). Re-collect on current bundles, and while re-collecting, run the storm suite on the interp lane too — commit coalescing under an interpreter regime is exactly where every-tick vs final-state policies should separate, and the lane costs nothing extra now that perf(lynx): lazy-load the main-thread worklet bridge #41's knobs exist.
    3. Cross-link to consume: The create residual: attribute it, tax-test it, then extend compiled programs to steady-state mounts (E-train) #230's E3 (updates over runs) needs precisely this suite's observables — bytes-per-tick under storm and coalescingRatio are the oracle numbers for whether the update wire's slot deltas hold their shape under burst load. When E3's PRs appear, the storm suite is where their claim gets checked; note that in the PR body so the connection survives.

    Full-column stays unsupported as recorded — no framework-specific proxy, per the correction. Nothing else blocks.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions