Skip to content

Improve runner code#134

Merged
camillobruni merged 2 commits into
WebKit:mainfrom
camillobruni:2025-08-13_fewer_globals
Aug 14, 2025
Merged

Improve runner code#134
camillobruni merged 2 commits into
WebKit:mainfrom
camillobruni:2025-08-13_fewer_globals

Conversation

@camillobruni
Copy link
Copy Markdown
Contributor

@camillobruni camillobruni commented Aug 14, 2025

  • Run benchmark code in blocks where possible to limit variable visibility
  • Use more const and remove var statements
  • Pass iterations to new Benchmark
  • Pass current iteration to benchmark.runIteration

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 14, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit bf9a2b4
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/689d9508878b3900083897fb
😎 Deploy Preview https://deploy-preview-134--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.

@camillobruni camillobruni changed the title Reduce global vars Improve runner code Aug 14, 2025
@camillobruni camillobruni requested a review from danleh August 14, 2025 07:52
Copy link
Copy Markdown
Contributor

@danleh danleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We are not using the total iteration count (passed to the Benchmark ctor) or current iteration (passed to runIteration) right now, but will in the future, correct?

@camillobruni
Copy link
Copy Markdown
Contributor Author

Correct, this has no effect currently, but I've started using them in the newer JS workloads, so I might land this separately for easier reviewing.

@camillobruni camillobruni merged commit c6524e8 into WebKit:main Aug 14, 2025
10 checks passed
@camillobruni camillobruni deleted the 2025-08-13_fewer_globals branch August 14, 2025 08:08
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