Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

[Benchmarks] Add scrolling to Crane's performance test#228

Merged
guidezpl merged 4 commits intomasterfrom
scrolling-crane-test
Jul 23, 2020
Merged

[Benchmarks] Add scrolling to Crane's performance test#228
guidezpl merged 4 commits intomasterfrom
scrolling-crane-test

Conversation

@guidezpl
Copy link
Member

Adds support for running additional actions during the driver performance transitions test
Adds a scrolling action to the Crane-only transitions test

Fixes #227

@guidezpl guidezpl requested a review from liyuqian July 22, 2020 09:00
craneFlyList,
0,
-1000,
const Duration(seconds: 1),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked pretty good to me on both mobile and desktop layouts

Copy link
Contributor

@rami-a rami-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Future<void> runDemos(List<String> demos, FlutterDriver driver,
{bool scrollToTopWhenDone = false}) async {
{Future<void> Function() additionalActions,
bool scrollToTopWhenDone = true}) async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Perhaps a trailing comma for better formatting

Copy link
Contributor

@liyuqian liyuqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I tried it on Moto G4 locally and got the following result where 1/3 of frame build times are out of budget, and the 90th-percentile is 25ms. It seems that we do have some room to improve the performance here.

  "average_frame_build_time_millis": 14.245278688524587,
  "90th_percentile_frame_build_time_millis": 25.351,
  "99th_percentile_frame_build_time_millis": 42.481,
  "worst_frame_build_time_millis": 94.018,
  "missed_frame_build_budget_count": 23,
  "average_frame_rasterizer_time_millis": 8.706786885245902,
  "90th_percentile_frame_rasterizer_time_millis": 19.511,
  "99th_percentile_frame_rasterizer_time_millis": 26.885,
  "worst_frame_rasterizer_time_millis": 65.748,
  "missed_frame_rasterizer_budget_count": 7,
  "frame_count": 61,
  "frame_rasterizer_count": 61,

@guidezpl guidezpl merged commit e6357bc into master Jul 23, 2020
@guidezpl guidezpl deleted the scrolling-crane-test branch July 23, 2020 07:32
liyuqian added a commit to liyuqian/flutter that referenced this pull request Jul 23, 2020
For flutter#61193

This also rolls the new Gallery app's version to include
flutter/gallery#228
@guidezpl guidezpl changed the title Add scrolling to Crane's performance test [Benchmarks] Add scrolling to Crane's performance test Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crane performance test should scroll the list

3 participants