Skip to content

Measure image stream transports and add the image stream example (#769) - #798

Open
ambroise-leclerc wants to merge 17 commits into
764-window-servicesfrom
769-bench-transports
Open

ambroise-leclerc wants to merge 17 commits into
764-window-servicesfrom
769-bench-transports

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Refs #769. Completes the work started in #785. Stacked on #797.

What changes

  • Manual end-to-end image stream benchmark (image_stream_report), host encoder script and a WebKitGTK shared-memory prototype.
  • examples/image-stream/: JPEG frames asked for by the page, with a typed-array pixel fallback, and its tests.
  • Measurement on dispatch for WebView2 and WKWebView (image_streams input) and in the Jetson validation script.
  • docs/IMAGE_STREAMS.md rewritten with the figures and the selected route.

Findings

  • JPEG over the bridge is the example's default. It is not always fastest: on the macOS runner raw pixels matched it at 960x720 and beat it at 1080p, so measure on the target.
  • The streamed route falls behind under both WebKit engines (cause not identified).
  • Shared memory is fastest but WebKitGTK-only and incompatible with its sandbox: not selected, ADR-017 unchanged.

Limits

  • Not measured: Jetson (the jetson-validation guard still names ambroise-leclerc/WebFront, so the job is skipped), NVENC, GPU-accelerated or physical display, remote browser.

Comment thread .github/scripts/jetson-orin.sh Resolved
Comment thread test/web/ImageStreamBenchmark.cpp Resolved
Comment thread test/web/image-stream/bench.js Resolved
Comment thread test/web/CMakeLists.txt Resolved
Comment thread .github/scripts/jetson-orin.sh Resolved
Comment thread test/web/image-stream/bench.js Resolved
Comment thread test/web/ImageStreamBenchmark.cpp Resolved
The guard compared github.repository with the former owner's repository, so the Jetson validation and the hardware workflow were skipped since the move. The runner instructions name the new repository too.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants