Or better yet, WebGL should be able to do this in a few ms on a GPU.
But I get that really this was a how much can wasm help performance as % vs js - you could always write an “optimized” routine and compare those and theoretically achieve something similar.