void 0 vs null

Benchmark created on


Setup

var i=false;
    var g;

Test runner

Ready to run.

Testing in
TestOps/sec
void 0
if (g !== void 0) i=true;
ready
null
if (g != null) i=true;
ready
void 0 - nonstrict
if (g != void 0) i=true;
ready

Revisions

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