Skip to content

Filmstrip polls delay native commands by ~110 ms each #584

Open

Description

@Winify

Without a CDP screencast (Safari, Appium), the filmstrip polls a screenshot every 200 ms (SCREENCAST_DEFAULTS.pollIntervalMs). On native iOS each shot holds the driver for about 440 ms, and a command issued during a shot waits behind it.

Measured (BrowserStack, iPhone 15 / iOS 17.5, 3-test spec, 2 runs with the filmstrip on and 2 with filmstrip: false):

  • Commands that start while a poll is in flight run about 110 ms slower than the same command type with the filmstrip off. That adds 2.4 to 3.2 s per run.
  • Per-action captures also get slower with polling on: a median of about 800 ms against about 680 ms.
  • Overall the spec ran about 5 s longer with the filmstrip on (median 43.1 s against 38.1 s).

Options to measure before choosing:

  • A longer default poll interval on native sessions.
  • Not polling between commands at all, and relying on the capture screenshots, which are already kept as frames.
  • A lower XCUITest screenshotQuality for poll shots only. It is untested whether this is faster or whether BrowserStack respects it.

Follow-up to #583.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions