includes vs ||

Benchmark created on


Setup

const t = 8;
const f = 5;

const test = t;

Test runner

Ready to run.

Testing in
TestOps/sec
includes
[3,4,6,8].includes(test);
ready
or
test == 3 || test == 4 || test == 6 || test == 8;



ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.