Hacker News new | ask | show | jobs
by dahfizz 1291 days ago
V8 does JIT compile WASM[1].

I would also expect GC to be an advantage for WASM here, since it originated from a language without a GC. Having to run a GC is slower than not having to run a GC, and the WASM code from the article doesn't need garbage collection.

Sandboxing is a plausible explaination. I can't imagine seccomp filters hurt performance that bad, but who knows how V8 does its sandboxing.

[1] https://v8.dev/docs/wasm-compilation-pipeline

1 comments

Are there any comprehensive benchmarks of WASM runtimes?

I've been using V8 to benchmark WASM code because its convenient, and because WASM in V8 is the obvious comparison to make when benchmarking against Javascript code. But if one of the other WASM runtimes does a better job optimizing, it might be interesting to see that.