Triple equals vs Double equals (v2)

Revision 2 of this benchmark created by Daez Blaze on


Description

Check performance of === against ==.

Preparation HTML

<script>
  var s1 = 1;
  var s2 = 1;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
===
if (s1 === s2) {}
ready
==
if (s1 == s2) {}
ready
!==
if (s1 !== s2) {}
ready
!=
if (s1 != s2) {}
ready

Revisions

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