Same branch, the winner flips with data size

Cost per element. Lower is faster.

0246ns / elementwinner flips1k4k16k64k256k1MNodeRust

Left of the line Node wins; right of it Rust wins. Rust has no branch to guess, so it stays flat. Node's branch predictor memorises a small array, then gives up once it's too big.