Skip to content

Customize Force Layout#510

Merged
camillobruni merged 15 commits into
WebKit:mainfrom
camillobruni:2025-04-29_force_layout
Jun 19, 2025
Merged

Customize Force Layout#510
camillobruni merged 15 commits into
WebKit:mainfrom
camillobruni:2025-04-29_force_layout

Conversation

@camillobruni
Copy link
Copy Markdown
Contributor

Currently we have two different modes in which we force layout

  • getBoundingClientRect used by default in the benchmark runner and tests
  • elementFromPoint used in the remote workloads

This PR adds a new layoutMode param to switch between the two modes.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2025

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 44bacd3
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6853f67ef61b6c0008721431
😎 Deploy Preview https://deploy-preview-510--webkit-speedometer-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 added non-trivial change A change that affects benchmark results trivial change A change that doesn't affect benchmark results and removed non-trivial change A change that affects benchmark results labels Apr 30, 2025
@camillobruni camillobruni requested review from julienw and rniwa April 30, 2025 08:12
Copy link
Copy Markdown
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

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

thank you, this looks good to me

Just a couple of suggestions, tell me what you think

Comment thread resources/shared/params.mjs Outdated
Comment thread resources/shared/params.mjs Outdated
Comment thread resources/shared/params.mjs Outdated
Comment thread resources/benchmark-runner.mjs Outdated
Comment thread resources/shared/helpers.mjs Outdated
@camillobruni camillobruni requested a review from julienw May 7, 2025 22:29
Copy link
Copy Markdown
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

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

I think the new code doesn't have the same perf characteristics as the old one, speedometer seems to run faster. Do you see that as well?

Comment thread resources/shared/helpers.mjs Outdated
Comment thread resources/shared/helpers.mjs Outdated
@camillobruni
Copy link
Copy Markdown
Contributor Author

Just double-checked and I can't really see a perf diff anymore.

Comment thread resources/shared/helpers.mjs Outdated
Comment thread resources/shared/params.mjs Outdated
Copy link
Copy Markdown
Contributor Author

@camillobruni camillobruni left a comment

Choose a reason for hiding this comment

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

This is ready for review again.

Comment thread resources/shared/helpers.mjs Outdated
@camillobruni camillobruni requested a review from julienw June 16, 2025 15:01
Copy link
Copy Markdown
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

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

Yeah I don't see a perf difference anymore

thanks!

Comment thread resources/shared/helpers.mjs Outdated
@camillobruni camillobruni merged commit ba41f91 into WebKit:main Jun 19, 2025
8 checks passed
@camillobruni camillobruni deleted the 2025-04-29_force_layout branch June 19, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trivial change A change that doesn't affect benchmark results v4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants