triple equals vs twice equals (v10)

Revision 10 of this benchmark created on


Setup

var testStr = 'test';
    var testStr2 = 'test2';
    var testInt = 111;
    var testInt2 = 111;
    var testIntSame = 111;
    var testIntDiff = 112;
    var testIntStr = '111';
    var result;

Test runner

Ready to run.

Testing in
TestOps/sec
if true
var lo = true;
var a = 0;
if(lo){
    var a = 0;
}
 
ready
=== true
var lo = true;
var a = 0;
if(lo === true){
    var a = 0;
}
ready

 
ready

 
ready

Revisions

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