Equality operators with the same types (v6)

Revision 6 of this benchmark created on


Description

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

Preparation HTML

<script>
  var foo = 12,
      bar = 12,
      baz = "12";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Strict equal
foo === bar;
ready
Non-strict equal
foo == bar;
ready
different types, coercion
foo == baz;
ready
different types, no coercion
foo === baz;
ready

Revisions

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