typeof

Benchmark created on


Preparation HTML

<script>
  var a = {a: 1, b: 2, c: 3};
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
typeof
if(typeof a.d != 'undefined') {/*Do nothing*/}
ready
no typeof
if(a.d != undefined) {/* Do nothing */}
ready

Revisions

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