Exploring Efficient not in Operations in Julia: Benchmarking Different Methods

It’s also relevant to note that your benchmark code is invalid in the sense of PSA: Microbenchmarks remember branch history

This doesn’t matter for your specific code, because it’s not branch-heavy. But you absolutely need a different benchmarking setup.