typeof() vs direct

Benchmark created on


Preparation HTML

<script>
  var a;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
typeof
(typeof(a) === "undefined")
ready
direct
(a === undefined)
ready

Revisions

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