Cost per element. Lower is faster.
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.