Mistakes
- Node.js Array.includes is faster than you'd expect on sorted arrays
If you omit a line like
x = test() || x
from your benchmarking code, the compiler is able to skip doing the work that you think it's doing.
x = test() || x
from your benchmarking code, the compiler is able to skip doing the work that you think it's doing.