test(benchmarks): dedicated prewarmed sidecar per bench op#200
Merged
NathanFlurry merged 1 commit intoJul 2, 2026
Conversation
The latency matrix shared one VM across every op, making results order-dependent (identical code drifted 2-3x across runs), letting the first op eat one-time costs (isolate creation, bridge snapshot, wasm compilation), and never recording WHICH sidecar binary was measured. - Per-op VM: guest/wasm/vmCmd lanes get a fresh, prewarmed, disposed-after VM (host lanes never touch a VM and run up front). Ops that need special VM options (external listeners' loopback-exempt ports) declare a prepareVm hook. - Documented warmup contract in prewarmBenchVm: trivial guest exec (isolate + snapshot), one native-baseline wasm exec (module compile), one command exec for command ops — before the op's own discarded warmup iterations. BENCH_COLD=1 skips it explicitly (loudly); BENCH_SHARED_VM=1 keeps the old engine as an escape hatch. - Binary provenance: every run prints and records sidecar path, profile, mtime, size in results JSON; run-benchmarks.sh builds release and pins it via the new resolveNodeRuntimeSidecarBinary hook. Order-independence: tcp_echo solo vs in-family now 1.5% apart (was 2-3x).
Member
Author
|
Stack for rivet-dev/secure-exec
Get stack: |
railway-app
Bot
temporarily deployed
to
secure-exec / secure-exec-pr-200
July 2, 2026 11:36
Destroyed
NathanFlurry
deleted the
stack/test-benchmarks-dedicated-prewarmed-sidecar-per-bench-op-klmrulns
branch
July 2, 2026 11:36
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5314
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5343
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5328
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / agentos-pr-1507
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5333
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / agentos-pr-1510
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5324
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5338
July 2, 2026 11:36
In progress
railway-app
Bot
requested a deployment
to
rivet-frontend / rivet-pr-5320
July 2, 2026 11:36
In progress
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.
The latency matrix shared one VM across every op, making results
order-dependent (identical code drifted 2-3x across runs), letting the first
op eat one-time costs (isolate creation, bridge snapshot, wasm compilation),
and never recording WHICH sidecar binary was measured.
(host lanes never touch a VM and run up front). Ops that need special VM
options (external listeners' loopback-exempt ports) declare a prepareVm hook.
snapshot), one native-baseline wasm exec (module compile), one command exec
for command ops — before the op's own discarded warmup iterations.
BENCH_COLD=1 skips it explicitly (loudly); BENCH_SHARED_VM=1 keeps the old
engine as an escape hatch.
mtime, size in results JSON; run-benchmarks.sh builds release and pins it
via the new resolveNodeRuntimeSidecarBinary hook.
Order-independence: tcp_echo solo vs in-family now 1.5% apart (was 2-3x).