Triple equals vs Double equals (v11)

Revision 11 of this benchmark created by ASM on


Description

Check performance of === against ==.

Preparation HTML

<script>
var TYPE = {
  ATYPE: 1,
  BTYPE: 2
};
var a = TYPE.ATYPE;
var b = TYPE.BTYPE;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
===
a === a;
a === b;
ready
==
a == a;
a == b;
ready

Revisions

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