normal equals or type equals

Benchmark created by Vuly on


Description

Which is faster?

Preparation HTML

<script>
  var i;
  var m;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Normal equals
m = typeof i == 'undefined'
ready
Type check
m = typeof i === 'undefined'
ready

Revisions

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