Skip to content

Pass the blob URL for preloads in WasmEMCCBenchmark. #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kmiller68
Copy link
Contributor

Right now we pass the original path when loading preloads for WasmEMCCBenchmark. This means we might skip the cache and fetch the content from the network again. We don't want to do this because it means the OS might spin down the CPU, which can punish running faster.

I also moved this logic to the prerunCode rather than adding it to the runnerCode since logically that makes more sense.

Lastly, have the preloads tuples contain the path for cli runs. This means we no longer have to duplicate the preload paths into the benchmark.js file.

Copy link

netlify bot commented May 27, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 21aa2dc
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/683869097ab69a0008782820
😎 Deploy Preview https://deploy-preview-74--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.

Right now we pass the original path when loading preloads for WasmEMCCBenchmark. This means we might skip the cache
and fetch the content from the network again. We don't want to do this because it means the OS might spin down the
CPU, which can punish running faster.

I also moved this logic to the `prerunCode` rather than adding it to the `runnerCode` since logically that
makes more sense.

As a drive by change, this patch has the preloads tuples contain the path for cli runs. This means we no longer have to duplicate
the preload paths into the benchmark.js file. Additionally, remove a console.log of the test that just finished which broke the
dumpJSONResults option for the CLIs.
@kmiller68 kmiller68 force-pushed the preload-blobs-wasm branch from a9e68ec to 21aa2dc Compare May 29, 2025 14:02
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