js-null-undefined-equality (v2)

Revision 2 of this benchmark created by KooiInc on


Preparation HTML

<script>
  var x;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
nonstrict-null
var y = (x == null);
ready
strict-undefined
var y = (x === undefined);
ready
nonstrict-undefined
var y = (x == undefined);
ready
strict null
var y = (x === null);
ready
boolean
var y = (!x)
ready

Revisions

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