[Fabric]: Performance Tests for React Native Windows#15666
[Fabric]: Performance Tests for React Native Windows#15666iamAbhi-916 wants to merge 23 commits intomicrosoft:mainfrom
Conversation
…, ActivityIndicator, Pressable, TouchableOpacity, TouchableHighlight, FlatList, and SectionList
packages/@react-native-windows/perf-testing/src/ci/BaselineComparator.ts
Show resolved
Hide resolved
packages/@react-native-windows/perf-testing/src/core/measurePerf.ts
Outdated
Show resolved
Hide resolved
packages/@react-native-windows/perf-testing/src/ci/BaselineComparator.ts
Show resolved
Hide resolved
|
Can we make the tests be more intensive. Perf tests that are measuring 5ms, are not likely to notice even a 10% regression in time (as 10% increase of 5ms is still 5ms with that level of accuracy). Can we make 100x the number of components or something to try to get bigger numbers, where changes would be more noticable? |
Initial focus was coverage breadth — getting all 14 components wired up with mount/unmount/rerender baselines and the statistical framework (Mann-Whitney, CV gate) and single-component scenarios validate correctness and catch catastrophic regressions (e.g. 0 ms → 50 ms), but you're right that they can't catch subtle ones. Added stress tests ! |
Description
Performance testing framework for RNW Fabric components.
Each test measures mount, unmount, re-render and component specific test scenario times also records baselines via snapshot matching.
How to Run
CLI Generator
yarn perf:create -- --name=ComponentNamescaffolds a new.perf-test.tsxfile with the correct structure, required props detection, and category selection.Type of Change
Why
RNW Fabric had no automated way to catch render performance regressions in core components.
Resolves #15665
What
Refer this wiki : https://github.com/microsoft/react-native-windows/wiki/Performance-tests-Fabric
Screenshots
Testing
Tested locally, mock ran as CI
Changelog
Should this change be included in the release notes: yes
Add a brief summary of the change to use in the release notes for the next release.
Added
@react-native-windows/perf-testing, a component performance testing framework for RNW FabricMicrosoft Reviewers: Open in CodeFlow