Skip to content

0.16: timed comparison for the ownership default #874

Open

Description

@danfry1

The native engine's default ownership model for 0.16 is chosen by a fixed comparison against 0.15.0: the bug museum's ownership class, then timed runs on four open-source React Native apps.

Configurations

Name Build Options
base 0.15.0 from npm none
A-on candidate experimental: { ownershipModel: 'resolution' } (nodeMocks implied)
B-on candidate experimental: { ownershipModel: 'resolver', nodeMocks: true }

The candidate is one packed build of main at a recorded commit, taken after #705, #718, #801 and #809 have merged in that order. Both candidates use the same build and differ only in options.

Runs

  1. R1, museum (untimed). The ownership class from the candidate commit's museum, against 0.15.0 and against the candidate under A-on and B-on.
  2. R2, baseline noise (timed). 0.15.0 only: four apps, per-file and hot, cold and warm, three rounds. The spread of every timing is recorded before R3 starts.
  3. R3, comparison (timed). base, A-on and B-on interleaved in each round, each configuration with its own copy of each app.

Timed runs need AC power and an otherwise idle machine.

Acceptance criteria

For the default-flip PR (not this issue)

Activity

  1. added this to the 0.16.0 milestone on Nov 15, 2026
  2. added
    area:ownership
    area:performance
    priority:medium
    on Nov 15, 2026
  3. danfry1 commented on Nov 15, 2026

    @danfry1
    OwnerAuthor

    Timed comparison of 0.15.0 against both candidate configurations, at 827f123: the default stays off for 0.16 on this evidence.

    • Criterion 2 fails for both candidates. In one app, 53 of 105 test files don't load with nodeMocks on, because a root __mocks__/ mock reaches Node's require as an unsettled async factory. That is tracked in nodeMocks: a root __mocks__ manual mock reaches Node's require as an unsettled async factory #896. Both candidates also cut failing tests in the other apps (for example 124 to 46 in the largest).
    • Criterion 3 fails for both candidates. The largest app runs 3–5% slower than in the same-session base on every timing. The bar is the base median plus measured noise; for example, per-file warm is 89.2 s against 84.7 s.
    • Criteria 1 and 4 pass. No files fall back to the guard. A-on newly passes 13 ownership exhibits and B-on 8, with B-on's inside A-on's. Peak memory is within 1.10× of base.
    • The base drifted 0.5–4% from the noise run on 6 timings, so the session is recorded as drifted. Criterion 2 is a load failure and doesn't depend on drift.

    Next: fix #896, then repeat the comparison with the same noise baseline.

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

    area:ownershiparea:performancepriority:medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions