Equality operators (v13)

Revision 13 of this benchmark created by Terry Anastasiadis on


Preparation HTML

<script>
  var str0 = "12",
      str1 = "12",
      strD = "13",
      obj0 = {
      'foo': 'bar'
      },
      obj1 = {
      'foo': 'bar'
      },
      objD = {
      'bar': 'foo'
      }
      
  num0 = 12, num1 = 12, numD = 13;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Equal strings
str0 === str1;
ready
(NOT) equal strings
str0 !== strD;
ready
Equal objects
obj0 === obj1;
ready
(NOT) equal objects
obj0 !== objD;
ready
Equal numbers
num0 === num1;
ready
(NOT) equal numbers
num0 !== numD;
ready

Revisions

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