HTML Preparation code:
Script Preparation code:
Tests:
  • Array - instanceof

  • NodeList - Object.prototype.toString.call

  • NodeList - .prototype.isPrototypeOf

  • NodeList - instanceof

  • RegExp - Object.prototype.toString.call

  • RegExp - .prototype.isPrototypeOf

  • RegExp - instanceof

  • jQuery - instanceof

  • Function - typeof

  • Function - .prototype.isPrototypeOf

  • Function - instanceof

  • Array - Symbol.iterator

  • Array - isArray

  • Array - Object.prototype.toString.call

  • Array - .prototype.isPrototypeOf

  • Function - Object.prototype.toString.call

  • jQuery - .prototype.isPrototypeOf

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array - instanceof
    NodeList - Object.prototype.toString.call
    NodeList - .prototype.isPrototypeOf
    NodeList - instanceof
    RegExp - Object.prototype.toString.call
    RegExp - .prototype.isPrototypeOf
    RegExp - instanceof
    jQuery - instanceof
    Function - typeof
    Function - .prototype.isPrototypeOf
    Function - instanceof
    Array - Symbol.iterator
    Array - isArray
    Array - Object.prototype.toString.call
    Array - .prototype.isPrototypeOf
    Function - Object.prototype.toString.call
    jQuery - .prototype.isPrototypeOf

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array - instanceof 4662853.5 Ops/sec
NodeList - Object.prototype.toString.call 1715273.8 Ops/sec
NodeList - .prototype.isPrototypeOf 3880449.8 Ops/sec
NodeList - instanceof 4749843.0 Ops/sec
RegExp - Object.prototype.toString.call 1795145.9 Ops/sec
RegExp - .prototype.isPrototypeOf 3388917.8 Ops/sec
RegExp - instanceof 4878580.0 Ops/sec
jQuery - instanceof 2814189.8 Ops/sec
Function - typeof 6108862.5 Ops/sec
Function - .prototype.isPrototypeOf 4692628.0 Ops/sec
Function - instanceof 4893851.5 Ops/sec
Array - Symbol.iterator 3028485.8 Ops/sec
Array - isArray 6005435.5 Ops/sec
Array - Object.prototype.toString.call 1904426.2 Ops/sec
Array - .prototype.isPrototypeOf 4482088.0 Ops/sec
Function - Object.prototype.toString.call 1807535.6 Ops/sec
jQuery - .prototype.isPrototypeOf 4861665.5 Ops/sec