News for hackers. Stuff that matters.
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by anonymousDan on Monday December 06, 2021 @10:23AM (#29460803)
What's the performance overhead in comparison to the unsandboxed version I wonder?
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by bholley on Monday December 06, 2021 @12:12PM (#29462465)
It varies. Here's an example of some performance analysis I did on the expat port: https://bugzilla.mozilla.org/show_bug.cgi?id=1688452#c37
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by azakai on Monday December 06, 2021 @10:42AM (#29461075)
There are detailed performance numbers here on a variety of real-world codebases:

https://kripken.github.io/blog/wasm/2020/07/27/wasmboxc.html

tl;dr Something like ~14% when using the best bounds checking strategy, or ~42% when using the most portable one. (There are options in the middle as well.)