Avatar for the web-infra-dev user
web-infra-dev
rstest
BlogDocsChangelog

Performance History

Latest Results

fix(core): guard interop has trap against primitive default export (#1234)
main
4 days ago
fix(runtime): cache vm.SyntheticModule to avoid nodejs/node#54735 crash V8 has a data race in `SyntheticModuleEvaluationStepsCallback` that fires when the same exports are wrapped in multiple `vm.SyntheticModule` instances whose evaluate() calls overlap on the microtask queue — nodejs/node#54735. rstest's `asModule` helpers used to build a fresh SyntheticModule on every call, so any CJS/JSON/Wasm dep imported more than once inside a worker could trigger the segfault. Surfaces as a SIGSEGV during worker bootstrap with the victim test file reported as `(0)` and empty stderr. Structure the wrapping so the cache key can only ever be the resolver's output: - `asModule` now takes a required `resolvedId: string`. Optional `identifier` was the weak link — callers could (and did) reach for raw `specifier`, which is importer-relative and collides across files. - Every SyntheticModule construction lives inside `defineRstestDynamicImport`, where the resolver's absolute path is already in scope. The ESM `link` callback and `importModuleDynamically` hook collapse to pure pass-through — no second wrap site that could re-introduce the wrong key. - Each loader owns a private `Map<resolvedId, SyntheticModule>`. The previous `WeakMap<context, Map<id, SM>>` was dead weight: rstest never creates a custom vm.Context, so every entry landed in the same sentinel bucket. Verified locally with a 50-run repro loop at `maxWorkers=8`, 0 SIGSEGV (baseline reproduced within 7–9 runs). Refs: nodejs/node#54735, vitest-dev/vitest#7741
dp
19 days ago
docs(website): improve rstest feature messaging
9aoy/docs-rstest-feature-list
19 days ago

Latest Branches

CodSpeed Performance Gauge
+11%
feat(pool): replace tinypool with self-owned worker pool#1171
18 days ago
708b700
dp
CodSpeed Performance Gauge
+2%
19 days ago
d359bc9
9aoy/docs-rstest-feature-list
CodSpeed Performance Gauge
-2%
19 days ago
39f2fc8
fix/lint-warnings
© 2026 CodSpeed Technology
Home Terms Privacy Docs