void 0 vs undefined vs global ref

Benchmark created on


Setup

var a = undefined;
    var U = void 0;

Test runner

Ready to run.

Testing in
TestOps/sec
undefined
(a === undefined)
ready
U
(a === U)
ready
void
(a === void 0)
ready

Revisions

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