-
-
Notifications
You must be signed in to change notification settings - Fork 202
Verify Playwright Overhead with Native Scroll Benchmark #9207
Copy link
Copy link
Closed
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting
Description
This task focuses on isolating whether the performance degradation observed in GridScrollBenchmark.spec.mjs on larger viewports (Desktop) is an artifact of the Playwright test harness interacting with MutationObserver or the specific manual scroll implementation.
Objectives
- Create Benchmark Variant: Implement
test/playwright/e2e/GridNativeScrollBenchmark.spec.mjs. - Disable Observers: Explicitly disconnect
Neo.main.DomAccess.documentMutationObserverwithin the test context to eliminate observer overhead. - Use Native Scrolling: Replace the JS-driven
setIntervalloop withelement.scrollTo({ behavior: 'smooth' })to leverage the browser's compositor thread. - Verify: Run the benchmark across Mobile, Laptop, and Desktop viewports to see if the "Desktop Cliff" disappears.
Acceptance Criteria
- New benchmark file created and functional.
- Benchmark run successfully in headless mode.
- Results compared against the baseline
GridScrollBenchmark.spec.mjs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting