Skip to content

Regression in some microbenchmarks_ios benchmarks. #68890

Closed

Description

@kf6gpe

https://flutter-flutter-perf.skia.org/e/?begin=1603135693&end=1603434531&keys=X1fa8ce79a6a882d2eacbb51a27b2fec2&requestType=0&xbaroffset=22131

Affects the following benchmarks:

stock_animation_close_first_frame_average
stock_animation_open_first_frame_average
stock_animation_subsequent_frame_average

First occurred at #67781, but could be later; it continued to rise. After that, it's dropped a little. Marking P1.

cc @jmagman , originator of that commit.

Activity

  1. added
    c: regressionIt was better in the past than it is now
    platform-iosiOS applications specifically
    c: performanceRelates to speed or footprint issues (see "perf:" labels)
    perf: speedPerformance issues related to (mostly rendering) speed
    team: benchmarkPerformance issues found by inspecting benchmarks
    on Oct 23, 2020
  2. jmagman commented on Oct 23, 2020

    @jmagman
    Member

    hm, I don't see how #67781 could be related, it introduced a new flag to a command those benchmarks aren't touching. Though the graph does indeed look like it started there.

  3. justinmc commented on Oct 28, 2020

    @justinmc
    Contributor

    Another nearby PR was #66785, which I reviewed, but it similarly seems unrelated. It only added a pass through parameter to text editing widgets.

    What is it that these benchmarks measure exactly?

    There is a lot of NNBD work in the vicinity of this change (relevant commits page), but I also wouldn't think that would cause this. CC @goderbauer @jonahwilliams for nearby PRs.

  4. goderbauer commented on Oct 28, 2020

    @goderbauer
    Member

    Nothing in that range looks suspicious in the framework - especially for something that would only affect the ios version of these benchmarks (Android seems unaffected).

    Did we ever fix the problem where random iOS pop-ups mess with our benchmark data? Could that be the problem here?

  5. goderbauer commented on Oct 28, 2020

    @goderbauer
    Member

    Also: In more recent runs, the benchmark seems to be bi-modal: https://flutter-flutter-perf.skia.org/e/?begin=1602198589&end=1603867624&formulas=norm(shortcut(%22X1fa8ce79a6a882d2eacbb51a27b2fec2%22))&requestType=0&xbaroffset=22131

    Some runs are close to what they were before this regression, others are still high.

  6. goderbauer commented on Oct 28, 2020

    @goderbauer
    Member

    Did we ever fix the problem where random iOS pop-ups mess with our benchmark data? Could that be the problem here?

    @godofredoc confirmed that those get automatically dismissed now.

  7. added
    P1High-priority issues at the top of the work list
    and removed on Nov 2, 2020
  8. liyuqian commented on Nov 2, 2020

    @liyuqian
    Contributor

    Reducing priority as this benchmark recently dropped and increased again on some seemingly unrelated commits. There doesn't seem to be anything actionable other than trying to reproduce it locally. If we can't reproduce locally, something might be happening in our infra that caused these benchmark jumps.

  9. godofredoc commented on Nov 2, 2020

    @godofredoc
    Contributor

    Did those metrics dropped last Thursday after 3:00 PM?

  10. liyuqian commented on Nov 3, 2020

    @liyuqian
    Contributor

    One drop occurred around 291ee94 which landed last Tuesday 9am.

    Another drop occurred around 3e41962 which landed last Friday 1pm.

    This is what I'm looking at: https://flutter-flutter-perf.skia.org/e/?begin=1602548289&end=1604386684&keys=X1fa8ce79a6a882d2eacbb51a27b2fec2&requestType=0&xbaroffset=22131

  11. kf6gpe commented on Nov 9, 2020

    @kf6gpe
    ContributorAuthor

    triage: The number's gotten slightly better, but the midpoint's still above the old value. I'm going to leave this open for now.

  12. kf6gpe commented on Nov 16, 2020

    @kf6gpe
    ContributorAuthor

    I don't know if this is a bona fide regression or not --- it's bouncing around slightly higher than the old values on average if I eyeball it, but that's a bad measure.

    @liyuqian What do you think?

  13. liyuqian commented on Nov 16, 2020

    @liyuqian
    Contributor

    By focusing on just microbenchmarks_ios stock_animation_subsequent_frame_average, I can see it to be around 290ns before the regression, and now the metric has gradually reduced to a level between 297ns to 340ns. It's much less than the peak regression around 500ns to 600ns.

    I'm reducing the priority because the number now is only slightly higher, and the micro benchmarks usually don't have a big impact on the end-user's experience directly. Let's hope that the downward trend will continue and we can probably close this soon.

  14. added
    P3Issues that are less important to the Flutter project
    and removed
    P1High-priority issues at the top of the work list
    on Nov 16, 2020
  15. Hixie commented on Mar 10, 2021

    @Hixie
    Contributor

    Looks like we dropped the ball on this so I'm just going to close it, too much time has passd now to really do anything.

  16. github-actions commented on Aug 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Aug 4, 2021
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

    P3Issues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowperf: speedPerformance issues related to (mostly rendering) speedplatform-iosiOS applications specificallyteam: benchmarkPerformance issues found by inspecting benchmarks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions