Skip to content

Enable Rayon for WASM #1094

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: dev
Choose a base branch
from
Open

Conversation

jaehunkim
Copy link

  • Added wasm-bindgen-rayon for parallelism.
  • Switched the test runner from Node.js to headless Chrome, since wasm-bindgen-rayon only works on the web target.
  • Enabled the atomics and bulk-memory features to support wasm-bindgen-rayon.

image

  • This benchmark was executed on an Apple M3 Pro with an 11-core CPU.
  • On Chrome, using 8 threads resulted in approximately 25% performance improvement compared to the single-threaded baseline.
  • In headless environments, the thread pool initializes successfully; however, performance degrades—likely due to limitations in thread count or other execution constraints specific to headless browsers.

@reviewable-StarkWare
Copy link

This change is Reviewable

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