js-null-undefined-equality (v13)

Revision 13 of this benchmark created 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
truthy check
var y = x ? true : false;
ready
if check
if (x);
ready

Revisions

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