typeof regexp vs instanceof (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script>
  var foo = new RegExp();
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
typeof
typeof foo === 'object'
ready
instanceof
foo instanceof RegExp
ready

Revisions

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