Repository navigation
feat(bench): record per-suite peak memory in the node benchmark - #10704
Merged
Merged
Conversation
IWANABETHATGUY
marked this pull request as ready for review
August 18, 2026 15:54
IWANABETHATGUY
marked this pull request as draft
August 19, 2026 02:14
IWANABETHATGUY
force-pushed
the
feat/bench-peak-memory
branch
2 times, most recently
from
August 19, 2026 02:29
f49269c to
b9665f0
Compare
IWANABETHATGUY
marked this pull request as ready for review
August 19, 2026 02:37
The benchmark workflow now builds with `just build-rolldown-release-tracking` (new recipe: binding release build with `--features tracking_allocator` + js glue). ci.js resets the allocator counters before each tinybench task and records `peakBytes - live floor` after it, emitting extra "<suite> (peak memory)" rows (unit `bytes`) into the same JSON the customSmallerIsBetter action tracks. On a stock binding the stats return null and the output is unchanged. getNativeMemoryStats/resetNativeMemoryStats are re-exported from `rolldown/experimental` so the bench reads the same binding instance that runs the builds. Why the allocator tier and not process.memoryUsage(): across 5 fresh-process rounds the allocator peaks hold CV 0.03-3.1% per suite, while polled per-task RSS deltas swing CV 2.9-136% and collapse to ~0 MB once the suite fits inside already-resident pages. First numbers also show sourcemaps roughly triple peak memory (threejs10x 757 MB -> 2.22 GB, rome-ts 272 -> 704 MB). The tracking allocator shifts timing numbers once by at most ~2.3%, far below the workflow's 110% alert threshold.
IWANABETHATGUY
force-pushed
the
feat/bench-peak-memory
branch
from
August 19, 2026 03:25
b9665f0 to
0e990ab
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
hyfdev
approved these changes
Aug 19, 2026
Merged
shulaoda
added a commit
that referenced
this pull request
Aug 19, 2026
## [1.2.5] - 2026-08-19 ### 🚀 Features - bench: record per-suite peak memory in the node benchmark (#10704) by @IWANABETHATGUY - binding: allocation-tracking global allocator behind the `tracking_allocator` feature (#10703) by @IWANABETHATGUY - add armv7 android (armv7-linux-androideabi) support (#10691) by @shulaoda - add `NAMESPACE_CONFLICT` warning for conflicting star re-exports (#7452) by @AliceLanniste ### 🐛 Bug Fixes - rolldown_plugin_vite_reporter: avoid ANSI erase-line escape in non-TTY output (#10692) by @shulaoda - rolldown_plugin_vite_resolve: preserve Yarn PnP virtual importer (#10591) by @Freakazo - exclude hash placeholders from case-insensitive filename deconfliction (#10590) by @Nic-Polumeyv - code-splitting: fold already-loaded side-effectful libraries into eager entries (#10645) by @JoviDeCroock - dev: flush re-emitted assets when their content changes (#10637) by @btea - renamer: rename nested `require`/`__filename`/`__dirname` bindings in CJS output (#10655) by @marcoroth - silence two wasm-only warnings (#10668) by @IWANABETHATGUY ### 🚜 Refactor - skip case folding for filenames with hash placeholders (#10689) by @hyfdev - code-splitting: remove redundant synthetic statement owner (#10503) by @hyfdev - renamer: move the cjs check into `rename_bindings_shadowing_cjs_ambient_names` (#10672) by @IWANABETHATGUY ### 📚 Documentation - agents: point the never-edit list at the binding files that exist (#10719) by @melbinjp ### 🧪 Testing - deconflict: pin renaming the external process binding away from the global (#10702) by @hyfdev - dev: expect a hot update across a circular import (#10700) by @hyfdev ### ⚙️ Miscellaneous Tasks - deps: upgrade oxc to 0.146.0 (#10707) by @Boshen - deps: update rust crates (#10684) by @renovate[bot] - deps: update npm packages (#10685) by @renovate[bot] - build the benchmark comparison window from the JSON lines (#10701) by @IWANABETHATGUY - wasi: retry the Node Test step to absorb the shared-dlmalloc flake (#10699) by @hyfdev - append benchmark results to storage as JSON lines (#10682) by @IWANABETHATGUY - deps: update github actions (#10683) by @renovate[bot] - deps: update dependency rolldown-plugin-dts to v0.28.2 (#10679) by @renovate[bot] - deps: update dependency rolldown-plugin-dts to v0.28.1 (#10674) by @renovate[bot] ### ❤️ New Contributors * @melbinjp made their first contribution in [#10719](#10719) * @Freakazo made their first contribution in [#10591](#10591) * @marcoroth made their first contribution in [#10655](#10655) Co-authored-by: shulaoda <[email protected]>
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.
This PR makes the node benchmark build with the
tracking_allocatorfeature and record each suite's peak Rust-side memory above its starting floor, emitted as<suite> (peak memory)rows (unitbytes) in the JSON the benchmark action already tracks. The allocator tier is used instead ofprocess.memoryUsage()because allocator peaks stay stable across fresh-process rounds (CV 0.03-3.1% per suite) while polled RSS deltas swing (CV 2.9-136%). On a stock binding the stats return null and the output is unchanged.requires #10703