Filmstrip polls delay native commands by ~110 ms each

Offen
#584 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
44/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
ios, typescript
Bereich
mobile, performance

Rechercherichtung

Start with SCREENCAST_DEFAULTS.pollIntervalMs and the filmstrip polling and capture paths; the issue does not name their files, so locate them in the repository. Compare command and per-action capture timings with polling enabled and disabled on native iOS, then measure the proposed polling interval and screenshot quality options. Done when measurements identify a change that reduces command delay without losing required filmstrip frames.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
10
Forks
4
Ø Merge
1 T. 11 Std.
Gemergte PRs (30 T.)
76

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus webdriverio/devtools

Alle Issues in webdriverio/devtools

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.