void 0 vs null (v2)

Revision 2 of this 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
0[0]
if (g != 0[0]) i=true;
ready

Revisions

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