Instanceof 8 times vs. 9 times (v3)

Revision 3 of this benchmark created on


Setup

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

Test runner

Ready to run.

Testing in
TestOps/sec
8 times
for (var i = 0; i < 9; i++) {
  t instanceof Test;
}
ready
9 times
for (var i = 0; i < 8; i++) {
  t instanceof Test;
}
ready
inline8
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
ready
inline9
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
t instanceof Test;
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