Skip to content
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

Run benchmarks with binaryen/wabt/wavm and potentially in browsers #147

Open
lrettig opened this issue Jun 1, 2018 · 1 comment
Open
Assignees

Comments

@lrettig
Copy link
Member

lrettig commented Jun 1, 2018

No description provided.

@lrettig
Copy link
Member Author

lrettig commented Jun 6, 2018

@poemm began looking into this (although I don't think he's actually run any benchmarks yet). Per his update today:

  • Firefox advertises one pass wasm to native binary
  • Looked into Chakra (Microsoft’s engine), Webkits (Apple), V8 (Google), Spidermonkey (Firefox)
  • I believe Firefox is the best one
  • webkit has something close but has intermediate representation
  • Chakra does something very complicated
  • V8 has some directed graph based intermediate representation, loops correspond cycles in graph, many nested loops lead to a big slowdown
  • I read the Firefox source code, there’s a file https://dxr.mozilla.org/mozilla-central/source/js/src/wasm/WasmBaselineCompile.cpp, would be great if we can get it to run standalone, they advertise a single pass to binary which is exactly what we need
  • this isn’t testnet critical but useful for later
  • Casey: Guido thought there is a pretty simple patch for WAVM to make it bomb proof
  • WAVM might be another good way forward; it’s what we’re using for Hera
  • WAVM does use intermediate rep., for testing that’s fine but for production we may want something faster

@axic axic closed this as completed Aug 17, 2018
@axic axic reopened this May 2, 2019
@axic axic transferred this issue from ewasm/pm May 2, 2019
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

No branches or pull requests

3 participants