Skip to content

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

Merged
ambroise-leclerc merged 23 commits into
764-window-servicesfrom
769-bench-transports
Dec 6, 2026
Merged

ambroise-leclerc merged 23 commits into
764-window-servicesfrom
769-bench-transports

Conversation

@ambroise-leclerc

@ambroise-leclerc ambroise-leclerc commented Dec 6, 2026 •

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, a WebKitGTK shared-memory prototype and a source pacer with its unit test.
  • examples/image-stream/: JPEG frames asked for by the page, with a typed-array pixel fallback, and its tests.
  • Measurement on dispatch: WebView2 and WKWebView (image_streams input) and the Jetson (jetson_orin, with jetson_orin_measure_only to skip the test suites, whose build takes over an hour on the board).
  • The guard of the Jetson jobs now names BareNative/WebFront (it still named the former repository, so the jobs were skipped), with the audit test, and the installed-layout test no longer assumes a C++26 mode a GCC 13 compiler does not have.
  • 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 the fastest: on the macOS runner raw pixels beat it at 1080p, and on the Jetson the two portable tracks are equal at 960x720 and neither holds 30 images/s. Measure on the target.
  • The streamed route is the worst track on every WebKit engine (WebView2 and CEF are on par with the bridge).
  • Shared memory is the fastest (10 to 17 ms on the Jetson) but WebKitGTK-only and incompatible with its sandbox: not selected, ADR-017 unchanged.
  • Run-to-run spread is up to about 25 % on the Jetson and larger on hosted runners: trust the order of the tracks, not single figures.

Limits

  • Not measured: the Jetson video encoders (no nvv4l2h264enc, no ffmpeg on the board; NVENC unmeasured), WebCodecs on the Jetson (VP8, VP9 and H.264 failed to decode), the board without the runner's CPU limit, a GPU-accelerated or physical display, a remote browser.
  • The PC tables were recorded before the pacing fix and not re-measured; a 2 to 6 ms encode against a 33 ms period should not be affected, but that was not checked.

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.
The audit compares the Jetson jobs' guard with a literal copy, which still named the former owner's repository.
…that mode (#769)

GCC 13 refuses -std=c++26 and reports 202100 in C++23, so the C++26 consumers of the installed-layout check can never see the standard library senders. Ask the compiler and keep to C++23 when it does not go past 202302.
The complete validation takes more than an hour to build on the board, and an unrelated test failure stopped the script before the measurement. With jetson_orin_measure_only the job configures the WebKitGTK tree and builds only image_stream_bench.
Comment thread test/web/ImageStreamBenchmark.cpp Resolved
@ambroise-leclerc
ambroise-leclerc merged commit 0dc74a3 into develop Dec 6, 2026
15 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 769-bench-transports branch December 6, 2026 11:49
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