instanceof performance (v11)

Revision 11 of this benchmark created by Theofilos Mouratidis on


Setup

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

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.