bulk-memory-operations icon indicating copy to clipboard operation
bulk-memory-operations copied to clipboard

Compare performance with SIMD

Open sunfishcode opened this issue 6 years ago • 2 comments

With SIMD as an active proposal, what are the expectations for the performance of future SIMD-optimized implementations of the proposed operations?

sunfishcode avatar Sep 08 '17 22:09 sunfishcode

It's a good question. My guess is that with SIMD the performance would get pretty close, but I haven't been able to verify that.

Personally, I think that this is a common enough operation that it is useful to have an instruction rather than require the wasm module to include an optimized version. Perhaps that's not an issue, if everyone uses the same libc -- though it's likely that only the WebAssembly VM will know the optimal instruction sequence for its host architecture.

I guess I'm still a bit unsure of the utility myself. :-)

binji avatar Sep 08 '17 23:09 binji

This comparison, when done, should be across multiple architectures to also see which approach has better performance portability.

jfbastien avatar Sep 08 '17 23:09 jfbastien