Skip to content

Conversation

@kmiller68
Copy link
Contributor

Right now they're quite small and the tests finish in only a few ms. We'd like our tests to run for at least 10ms. After this change the average time in V8, which is the faster browser on this test, runs in about 12/14 ms for async/promise respectively on my M2 Pro Mac.

I also lowered the iteration count to keep the total time for these tests down. From looking at samples they both have a relatively small code set and tier up by the 3-4th iteration. Additionally 80 iterations seems to be long enough to catch the existing worst cases.

Right now they're quite small and the tests finish
in only a few ms. We'd like our tests to run for
at least 10ms. After this change the average time
in V8, which is the faster browser on this test
runs in about 12/14 ms for async/promise
respectively.
@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit a271fde
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/68fa67f7431a430008cba015
😎 Deploy Preview https://deploy-preview-224--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.

@iainireland
Copy link
Contributor

iainireland commented Oct 23, 2025

IIUC, this increases the total number of inner iterations by 1.5x for doxbee-promise, and 1.67x for doxbee-async? (Outer iterations from 120 -> 80, inner iterations from 10k to 20k/25k). Testing on Firefox and Chrome, it looks like this cuts the reported score roughly in half; not sure why it's not 1.5, but it presumably has to do with the first/worst/average scoring.

We're currently around 10x slower than Chrome (but actively working on it). The increased time is manageable on desktop, but we start to run into slow script dialog problems on slower Android phones in CI. Would it be a problem to reduce the (outer) iteration count further?

@camillobruni
Copy link
Contributor

After landing #231 this might have to be adjusted again?

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.

3 participants