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

  • NodeList - objType

  • RegExp - objTypeS

  • RegExp - objType

  • Function - objTypeS

  • Function - objType

  • Array - objTypeS

  • Array - objType

  • jQuery - .prototype.isPrototypeOf

  • Function - Object.prototype.toString.call

  • Array - .prototype.isPrototypeOf

  • Array - Object.prototype.toString.call

  • Array - isArray

  • Array - Symbol.iterator

  • Function - instanceof

  • Function - .prototype.isPrototypeOf

  • Function - typeof

  • jQuery - instanceof

  • RegExp - instanceof

  • RegExp - .prototype.isPrototypeOf

  • RegExp - Object.prototype.toString.call

  • NodeList - instanceof

  • NodeList - .prototype.isPrototypeOf

  • NodeList - Object.prototype.toString.call

  • NodeList - objTypeS

  • jQuery - objTypeS

  • Array - objTypeL

  • Function - objTypeL

  • RegExp - objTypeL

  • NodeList - objTypeL

  • jQuery - objTypeL

  • IFrame - objType

  • IFrame - objTypeS

  • IFrame - objTypeL

  • IFrame - string comp

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
Array - instanceof 157846.8 Ops/sec
RegExp - .prototype.isPrototypeOf 160023.7 Ops/sec
RegExp - Object.prototype.toString.call 140592.7 Ops/sec
NodeList - instanceof 159057.4 Ops/sec
NodeList - .prototype.isPrototypeOf 162492.8 Ops/sec
NodeList - Object.prototype.toString.call 138623.3 Ops/sec
NodeList - objTypeS 40827.7 Ops/sec
RegExp - instanceof 157216.3 Ops/sec
jQuery - objTypeS 40461.0 Ops/sec
Function - objTypeL 45941.8 Ops/sec
RegExp - objTypeL 45783.7 Ops/sec
NodeList - objTypeL 45178.7 Ops/sec
jQuery - objTypeL 46161.7 Ops/sec
IFrame - objType 78363.5 Ops/sec
IFrame - objTypeS 40529.6 Ops/sec
Array - objTypeL 45926.3 Ops/sec
IFrame - objTypeL 45401.9 Ops/sec
jQuery - instanceof 146515.8 Ops/sec
Function - .prototype.isPrototypeOf 162760.3 Ops/sec
NodeList - objType 79971.5 Ops/sec
RegExp - objTypeS 40853.8 Ops/sec
RegExp - objType 80024.3 Ops/sec
Function - objTypeS 40733.0 Ops/sec
Function - objType 79742.4 Ops/sec
Array - objTypeS 40277.7 Ops/sec
Function - typeof 380514.9 Ops/sec
Array - objType 80010.4 Ops/sec
Function - Object.prototype.toString.call 135555.1 Ops/sec
Array - .prototype.isPrototypeOf 158371.9 Ops/sec
Array - Object.prototype.toString.call 140435.5 Ops/sec
Array - isArray 167174.3 Ops/sec
Array - Symbol.iterator 100299.0 Ops/sec
Function - instanceof 161079.5 Ops/sec
jQuery - .prototype.isPrototypeOf 158940.6 Ops/sec
IFrame - string comp 467957.1 Ops/sec