The JavaScript is not a strawman
It is the same algorithm with the same squared-term reuse, writing into the same buffer shape. Benchmarking WebAssembly against deliberately naive JavaScript is the oldest way to produce an impressive and meaningless number. What is left measures what an ahead-of-time compiled module with a fixed memory layout buys over an optimising JIT on identical arithmetic — a real margin, and a smaller one than the demos usually claim.
