Triple equals vs Double equals

Benchmark created by Barry van Oudtshoorn 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
===
s1 === s2
ready
==
s1 == s2
ready
!==
s1 !== s2
ready
!=
s1 != s2
ready

Revisions

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