triple equals vs twice equals (v13)

Revision 13 of this benchmark created by Dennis on


Setup

var testStr = 'test';
    var testStr2 = 'test2';
    
    var jsonObj = {
      x: 222,
      y: 223,
      innerObj: {
        x: 333,
        y: 334
      }
    };

Test runner

Ready to run.

Testing in
TestOps/sec
3-equals-false
result = (testStr === testStr2);
ready
2-equals-false
result = (testStr == testStr2);
ready
json accessor?
result = (jsonObj.innerObj.x == jsonObj.innerObj.y);
ready

Revisions

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