Remix.run Logo
turbolent 2 days ago

... in browsers. Which at best JIT compile. There are several WASM runtimes that AOT compile and have significantly better performance (e.g. ~5-10% slower).

The title is highly misleading.

astafrig 2 days ago | parent | next [-]

It’s not misleading to measure the performance of WebAssembly in a web browser.

bjconlan 2 days ago | parent | next [-]

Yeah, but it's specifically testing things that implement against a posix API (because generally that's what "native" apis do (omiting libc and other os specific foundation libraries that are pulled in at runtime or otherwise) I would suspect that if the applications that linked against some wasi like runtime it might be a better metric (native wasi as a lib/vs a was runtime that also links) mind you that still wouldn't help the browser runtime... But would be a better metric for wasm (to native) performance comaparison.

But as already mentioned we have gone through this all before. Maybe we'll see wasm bytecodes pushed through silicon like we did the Jvm... Although perhaps this time it might stick or move up into server hardware (which might have happened, but I only recall embedded devices supporting hardware level Jvm bytecodes).

In short the web browser bit is omitted from the title.

wffurr 2 days ago | parent | prev [-]

WebAssembly is neither web nor assembly. It’s a low level byte code format most similar to LLVM IR.

pyrolistical 2 days ago | parent | prev | next [-]

Just means the browsers can catch up.

Initially slower but then faster after full compilation

padenot 2 days ago | parent | prev | next [-]

Browsers have been doing (sometimes tiered) AOT compilation since wasm inception.

chalcolithic 2 days ago | parent | prev [-]

could you please name them?

wffurr 2 days ago | parent [-]

WAMR (WebAssembly Micro Runtime), wasm2c in WABT (WebAssembly Binary Toolkit), Wasmtime.

chalcolithic 5 hours ago | parent [-]

thank you very much!