benchmark: live view CDP latency comparison (PR #174 vs #176)#179
Draft
hiroTamada wants to merge 1 commit intomainfrom
Draft
benchmark: live view CDP latency comparison (PR #174 vs #176)#179hiroTamada wants to merge 1 commit intomainfrom
hiroTamada wants to merge 1 commit intomainfrom
Conversation
Benchmark tool and results comparing CDP operation latency across four image variants: headless baseline, Approach 1 (Xvfb/noVNC, PR #174), Approach 2 (CDP screencast, PR #176), and headful. Covers 40+ CDP operations across 9 categories (screenshot, JS eval, DOM, input, network, page, emulation, target, composite) plus concurrent load testing. Includes results from Docker (4 vCPU / 1 GB headless, 8 vCPU / 8 GB headful), Docker with constrained headful (4 vCPU / 1 GB), and KraftCloud (Unikraft) environments. Key findings: - Approach 2 (CDP screencast) adds near-zero overhead vs baseline - Approach 1 (Xvfb/noVNC) adds ~30% overhead on input/screenshot ops - Headful under headless constraints is not viable (39% idle memory) - On Unikraft, Approach 2 remains the better choice for live view Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Summary
Benchmark tool and results comparing CDP operation latency across headless live view approaches to inform which implementation to ship.
Variants tested:
mainfeat/headless-live-view(PR #174)headless-cdp-live-view(PR #176)mainEnvironments tested:
Key Findings
Docker (side-by-side median latency, selected operations)
KraftCloud / Unikraft
What's Included
benchmarks/liveview/main.go— Go benchmark client (40+ CDP operations, concurrent load test, session mode for proxied CDP)benchmarks/liveview/run.sh— Docker orchestration (build, deploy, benchmark, collect stats)benchmarks/liveview/run-unikraft.sh— KraftCloud orchestrationbenchmarks/liveview/README.md— Usage guideresults/20260310-172933/— Docker 4-variant results with SUMMARY.mdresults/20260310-174639/— Headful-constrained resultsresults/headful-constrained-results.md— Headful-constrained analysisresults/ukc-final/— KraftCloud results with SUMMARY.mdConclusion
Approach 2 (CDP screencast, PR #176) is the recommended live view implementation: