Comparing === and ==

Benchmark created on


Preparation HTML

<script>
 var a = 3;
 var b = undefined;
 var c = "5";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
1 ==
if (a == b) {}
ready
2 ==
if (b == c) {}
ready
3 ==
if (a == c) {}
ready
1 ===
if (a === b) {}
ready
2 ===
if (b === c) {}
ready
3 ===
if (a === c) {}
ready

Revisions

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