Skip to content

feat(ANDPERF-5): Add Compose and View fast-scroll jank benchmark tests #8

@e-Garcia

Description

@e-Garcia

📝 Description
Extend the Macrobenchmark test suite to measure frame stability and jank during fast scrolling interactions in both the Jetpack Compose and Android View implementations.

This phase builds upon ANDPERF-4 (cold startup benchmarks) and aims to quantify runtime rendering smoothness under UI stress conditions such as rapid list scrolling.

🎯 Objectives
Create or extend benchmark test class ComposeViewBenchmarks.kt in
benchmark/src/androidTest/java/dev/egarcia/andperf/benchmark/.

Implement two new tests:
fastScroll_compose
fastScroll_view

Use UiAutomator to simulate repeated fling gestures.

Capture metrics:
FrameTimingMetric

Validate consistent frame-time data across both implementations.

🧪 Acceptance Criteria
Both tests execute successfully via connectedBenchmarkAndroidTest.
Each test produces FrameTimingMetric results under repeated scroll conditions.
Benchmark outputs include frame percentile data (50th, 90th, 99th) in JSON reports.
No missing class or runtime errors during test runs.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions