Skip to content

Conversation

@kmiller68
Copy link
Contributor

@kmiller68 kmiller68 commented Nov 12, 2025

Right now StartupBenchmark builds all the sources it will need up front. This adds somewhat substantial memory overhead, in particular for jsdom-d3-startup where it seems to add about 50MB of overhead.

This patch changes it so the source is generated in the prepareForNextIteration hook on demand before the next iteration starts.

I also got rid of the unused zero sourceCodeReuseCount behavior where it didn't change the source code. It made the code more complex and seems like you wouldn't use StartupBenchmark in that case anyway.

Right now StartupBenchmark builds all the sources it will need up front.
This adds somewhat substantial memory overhead, in particular for
jsdom-d3-startup where it seems to add about 50MB of overhead.

This patch changes it so the source is generated in the
prepareForNextIteration hook on demand before the next iteration starts.
@kmiller68 kmiller68 requested a review from danleh November 12, 2025 15:39
@netlify
Copy link

netlify bot commented Nov 12, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 288fcb0
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/6914aa2712b8ad000862e71e
😎 Deploy Preview https://deploy-preview-237--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant