test(benchmarks): module-resolution family#202
Merged
NathanFlurry merged 1 commit intoJul 2, 2026
Conversation
New 'modules' family measuring the module-load surface that dominates session-create tax (~1500ms vs 378ms bare-node) and agent require/import storms: - require_100_small / import_100_small_esm: 100 unique tiny modules per iteration (staged outside timing so the module cache never short-circuits), exports summed and verified. Guest ~40ms vs node ~2.4ms (17-20x) — the attribution row for the session tax. - import_npm_package: real installed package (zod, 76 transitive module files) imported by a fresh process per iteration (same-process query-string busting only reloads the entry module, not the graph). Guest 163ms vs node 39ms. - import_fresh_file: moved from fs/module_import_fresh (the 0.3 regression row) into this family. - native/wasm lanes explicitly unsupported (JS-runtime surface); per-op sample cap hook keeps default runs bounded (modules rows: 5 measured + 1 warmup).
Member
Author
|
Stack for rivet-dev/secure-exec
Get stack: |
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.
New 'modules' family measuring the module-load surface that dominates
session-create tax (~1500ms vs 378ms bare-node) and agent require/import
storms:
iteration (staged outside timing so the module cache never short-circuits),
exports summed and verified. Guest ~40ms vs node ~2.4ms (17-20x) — the
attribution row for the session tax.
files) imported by a fresh process per iteration (same-process query-string
busting only reloads the entry module, not the graph). Guest 163ms vs node
39ms.
row) into this family.
cap hook keeps default runs bounded (modules rows: 5 measured + 1 warmup).