Re:Faster TypedArrays: Vector Addition in WebAssembly
by formerly_proven on Sunday January 02, 2022 @12:56PM
(#29771389)
(~13 GFLOPS over a ~13 kB working set)
[ Parent
| on HN ]
Re:Faster TypedArrays: Vector Addition in WebAssembly
by still_grokking on Sunday January 02, 2022 @01:44PM
(#29772065)
Oh, someone measuring cache bandwidth?
Re:Faster TypedArrays: Vector Addition in WebAssembly
by brrrrrm on Sunday January 02, 2022 @02:18PM
(#29772516)
mostly L1 data-cache, yea (50% of peak BW). Which is a good sign for an interpreted ISA.
Re:Faster TypedArrays: Vector Addition in WebAssembly
by olliej on Sunday January 02, 2022 @02:51PM
(#29772976)
Any WASM that runs for more than a few milliseconds is going to be compiled to native code. I do wonder just where the remaining 50% of bandwidth is going. IIRC bounds checking is only be around a 10% penalty in most studies. I guess there are other checks needed in JS (stripping signaling NaNs, etc but I don’t think WASM requires that)