Instanceof 8 times vs. 9 times

Benchmark created by Tomasz P. Szynalski on


Setup

Test = function(){
    }
    
    t = new Test();

Test runner

Ready to run.

Testing in
TestOps/sec
8 times
for (var i = 0; i < 8; i++) {
  t instanceof Test;
}
ready
9 times
for (var i = 0; i < 9; i++) {
  t instanceof Test;
}
ready

Revisions

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

  • Revision 1: published by Tomasz P. Szynalski on
  • Revision 3: published on
  • Revision 14: published by Tomasz P. Szynalski on
  • Revision 15: published by Tomasz P. Szynalski on