Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138
Windows
Desktop
one year ago
Test name Executions per second
IFrame - instanceof 1837829.0 Ops/sec
IFrame - .prototype.isPrototypeOf 1363616.9 Ops/sec
IFrame - .nodeName 905005.6 Ops/sec
IFrame - Object.prototype.toString.call 391527.5 Ops/sec
IFrame - objType 356447.5 Ops/sec
IFrame - objTypeS 168462.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • IFrame - instanceof

  • IFrame - .prototype.isPrototypeOf

  • IFrame - .nodeName

  • IFrame - Object.prototype.toString.call

  • IFrame - objType

  • IFrame - objTypeS