multiple compare string (keller) (v2)

Revision 2 of this benchmark created on


Setup

var x = 1;

var z = 2;
var t = 1;

Test runner

Ready to run.

Testing in
TestOps/sec
equal or
console.log(x === z || x === t);
ready
array es6+
console.log([z,t].includes(x));
ready
array es5
console.log([z,t].indexOf(x) >= 0);
ready

Revisions

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