Repository navigation
test(bench): add synthetic workerd app workloads - #900
Merged
domgan-oai merged 1 commit intoAug 28, 2026
Merged
Conversation
domgan-oai
marked this pull request as ready for review
August 28, 2026 23:14
14 of 21 tasks
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.
Summary
Why
The existing fetch-pattern controls isolate small promise and data-loading shapes. These fixtures add larger component trees, consumed contexts, repeated data consumers, response-derived dependencies and nested boundaries so future framework changes can be evaluated against complete application-shaped output.
Changes
Validation
pnpm sync(withpnpm_config_verify_deps_before_run=warnto avoid automatic installation in the partially linked local environment); no generated tracked changes.node --test benchmarks/ssr-workerd/app-workloads/verify.test.mjs scripts/ci-workflow.test.mjs— 78 tests passed.BENCH_ROUNDS=1 node benchmarks/ssr-workerd/app-workloads/run.mjs 1— all eight cases and streaming/cache/isolation preflights passed.tsrx-tsc --noEmitand Prettier checks passed. Local validation used cached TSRX checker/formatter 0.3.120 because the locked 0.3.126 validation tools were unavailable; TypeScript 5.9.3 and Prettier 3.9.6. Performance builds used the exact TSRX core 0.1.61, Vite 8.1.5, Miniflare 4.20260714.0 and workerd 1.20260714.1 with this worktree's framework source.git diff --check.pnpm format:check— full-repository local command not run; scoped alternative above.pnpm typecheck— full-repository local command not run; scoped alternative above.pnpm test— full-repository local command not run; targeted tests above. Current-head remote CI will be checked after the draft-to-ready transition.Risk / follow-ups
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Changes are confined to benchmarks, CI smoke, and documentation; no production packages or SSR runtime behavior are modified.
Overview
Adds a standalone
benchmarks/ssr-workerd/app-workloadsharness that runs production-compiled Octane SSR in real workerd (Miniflare) against a local service-binding JSON backend—benchmark-only; no framework runtime or adapter changes.Two invented workspace and history page shapes stress deep provider trees, nested
@trystreaming boundaries, request-scopedload()deduplication, and response-derived fetch chains. Each scenario runs four controls (zero-delay, delayedio, shell-lessio-blocked-root, and explicitly primedwarm-data), with optionalBENCH_SCALE/ delay tuning.The runner records TTFB, first primary content, stream completion, wire size, and backend/cache stats, then enforces correctness via wire-payload oracles, shell/tail release gates, tenant isolation checks, and dependency-graph assertions (plus ~17 oracle unit tests). Docs include run instructions, a local baseline note (no CI timing thresholds), and
ssr-workerdpackage scripts.The weekly Bench workflow gains a step that runs the oracle tests and a one-round smoke of all eight cases; this suite stays outside the unified
bench.mjs --ratiosgate.Reviewed by Cursor Bugbot for commit c9eefa1. Bugbot is set up for automated code reviews on this repo. Configure here.
Current-head CI
All 26 jobs in CI run 33219726137 passed for
c9eefa1aad4f5777d304cf0b29742377c2c6ef4f, including lint, typecheck, all test/parity shards, package validation, examples, browser/website integration, and CI provenance. Cursor Bugbot completed successfully with no findings or review threads. Finalpnpm syncleft the worktree clean; the head contains the livemainbase. The PR is ready for human review, not auto-approved or merged.