Typeof vs undefined comparison

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
typeof
let a;
if(typeof a === "undefined");
ready
undefined comparison
let a;
if(a === undefined);
ready

Revisions

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