FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

StartupBenchmark should create sources lazily by kmiller68 · Pull Request #237 · WebKit/JetStream · GitHub

StartupBenchmark should create sources lazily - #237

Open
kmiller68 wants to merge 1 commit into
WebKit:mainfrom
kmiller68:startup-benchmark-lazy-sources
Open

StartupBenchmark should create sources lazily#237
kmiller68 wants to merge 1 commit into
WebKit:mainfrom
kmiller68:startup-benchmark-lazy-sources

Conversation

kmiller68 commented Nov 12, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

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 requested a review from danleh November 12, 2025 15:39

netlify Bot commented Nov 12, 2025
edited
Loading

Copy link
Copy Markdown

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...



Use your smartphone camera to open QR code link.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL