Test and (v2)

Revision 2 of this benchmark created on


Setup

let a = 0
let b = 3


let res1;
let res2;

function and(a,b) {
     if( a )
          a;
     return b;
}

let locals = {};

Test runner

Ready to run.

Testing in
TestOps/sec
TEST1
res1 = and(a,b)
res2 = and(b,a)
ready
Old
res1 = (locals.test = a) ? locals.test : b
res2 = (locals.test = b) ? locals.test : a
ready

Revisions

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