Instanceof 8 times vs. 9 times (v15)

Revision 15 of this benchmark created by Tomasz P. Szynalski on


Setup

if (window.Test === undefined) {
    window.Test = function() {};
    }
    var t = new window.Test();

Test runner

Ready to run.

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