3 ms·
Quote: "Firstly it's "close to the metal" -- if you compile for example an image-processing library to WebAssembly and run it, you'll get similar performance wh
by unnouinceput 3y ago
Quote: "Firstly it's "close to the metal" -- if you compile for example an image-processing library to WebAssembly and run it, you'll get similar performance when compared to compiling it to x86-64 or ARMv8 or what have you."
Is WebAssembly now able to run it outside a web browser or this guy is just "inflating" results, to put it mildly and not call him a liar. Because last I checked, there is no world where a browser application is in similar performance with a native one.
- flohofwoe 3y agoMy home computer emulators (mostly integer bit-twiddling code written in portable C) have similar performance between native and WASM with -O3 (within 10..25% of each other) - so yeah, WASM absolutely is in the same performance ballpark for 'regular' C code that doesn't use platform- and compiler-specific language extensions. Link: https://floooh.github.io/tiny8bit/ https://floooh.github.io/tiny8bit/