Instanceof 8 times vs. 9 times (v14)

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


Setup

t = new CustomEvent('test');

Test runner

Ready to run.

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