if & includes

Benchmark created on


Setup

const a = 1;
const b = 2;

Test runner

Ready to run.

Testing in
TestOps/sec
if
if(a === 3 || b ===3) { }
ready
includes
if([a,b].includes(3)){}
ready

Revisions

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