Repository navigation
docs: benchmark results for the 1.0-beta core branch - #561
Merged
Merged
Conversation
Adds BENCHMARKS.md with eager-vs-streaming read and write measurements on Node 22 and Node 24 (committed fixtures plus the 211 MB EXAMPLES.md stress file), a chunk-size throughput table, and the bench/ harness that produced them (one fresh process per cell, forced-GC live-ArrayBuffer peak sampling). Co-Authored-By: Claude Fable 5 <[email protected]>
|
🎉 This PR is included in version 1.0.0-beta.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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 adds the benchmark results the RELEASE_PLAN §5 checklist asks for — the last unmet description item on #542 — plus the small harness that produced them, so anyone can re-run the numbers.
I measured the built bundle on both CI-tested Node versions (22.20.0 and 24.9.0, Apple M4 / 16 GB / macOS), on the committed fixtures and on the 211 MB stress file from EXAMPLES.md's make-big recipe. The headlines, consistent across both Node versions:
readFile+ naturalize lands at ~38–41 ms · 422 MB peak liveArrayBuffermemory; the streaming path to the same naturalized dataset at ~58 ms · ~214–239 MB; and a retain-nothing streaming scan walks the whole file in ~47 ms at 4–16 MB peak — memory bounded by chunk size, not file size.StreamingPart10Writeris ~10–13× faster at ~1/90th the memory of the buffered writer (≈60 ms · ~9 MB vs 616–813 ms · ~840 MB).The harness (
bench/run.mjs+bench/worker.mjs,pnpm run bench) runs every cell in its own fresh process and reports median wall time with min–max ranges, plus peak liveArrayBuffermemory sampled after forced GC — the honest metric for DICOM payloads, per EXAMPLES.md. BENCHMARKS.md carries the full tables, the method, and the exact reproduction commands.🤖 Generated with Claude Code