void vs undefined (v7)

Revision 7 of this benchmark created by Marco Steffen on


Test runner

Ready to run.

Testing in
TestOps/sec
undefined
(function(a) {
 return (a === undefined);
})();
ready
undefined2
(function(a, undefined) {
 return (a === undefined);
})();
ready
void1
(function(a) {
 return (a === void 0);
})();
ready
void2
function b(a) {
 return (a === void 0);
};

b();
ready

Revisions

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