void vs undefined (v16)

Revision 16 of this benchmark created by eastkiki on


Test runner

Ready to run.

Testing in
TestOps/sec
undefined
function b(a) {
 return (a === undefined);
};

b();
ready
void
function b(a) {
 return (a === void 0);
};

b();
ready
typeof
function b(v) {
 return "undefined" === typeof(v);
}

b();
ready
!!
function b(v) {
 return !v;
}

b();
ready

Revisions

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