Equality operators (v12)

Revision 12 of this benchmark created on


Description

Test for == and === with the same/diff operand types.

Preparation HTML

<script>
  var baz0 = "12",
      baz1 = "12",
      buz0 = "13",
      obj0 = { 'foo' : 'bar' },
      obj1 = obj0,
      obk0 = { 'bar' : 'foo' };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Equal strings
baz0 === baz1;
ready
Non-equal strings
baz0 === buz0;
ready
Equal objects
obj0 === obj1;
ready
Non-equal objects
obj0 === obk0;
ready

Revisions

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