=== vs == for null (v2)

Revision 2 of this benchmark created by Mike McCaughan on


Preparation HTML

<script>
  var a = null,
      b = null;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
=== for null
if (a === null) {
 var c = '';
}
ready
== for null
if (b == null) {
 var d = '';
}
ready

Revisions

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

  • Revision 1: published by Mike McCaughan on
  • Revision 2: published by Mike McCaughan on
  • Revision 3: published by Mike McCaughan on
  • Revision 4: published by Mike McCaughan on