triple equals vs twice equals-2 (v5)

Revision 5 of this benchmark created by ahatchkins on


Setup

var testStr = '111';
    var testInt = 111;
    var testStrSame = '111';
    var testStrDiff = '112';
    var result;

Test runner

Ready to run.

Testing in
TestOps/sec
3-equals-true
result = (testStr === testStrSame);
ready
2-equals-true
result = (testStr == testStrSame);
ready
3-equals-false
result = (testStr === testStrDiff);
ready
2-equals-false
result = (testStr == testStrDiff);
ready

Revisions

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