instanceof performance (v12)

Revision 12 of this benchmark created by 4esn0k on


Preparation HTML

<script>

function Test() {
    this.property = true;
}

var t = new Test;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
instanceof
if(t instanceof Test);
 
ready
property
if(t.constructor == Test);
ready

Revisions

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