Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
fastest iter childelements 153813.9 Ops/sec
tag name 119970.4 Ops/sec
class name 119973.5 Ops/sec
id 83490.7 Ops/sec
array of node 110159.1 Ops/sec
array item 240431.2 Ops/sec
fastest iter childelements + getAttribute 239362.0 Ops/sec
fastest iter childelements + nodeValue 653028.5 Ops/sec
fastest iter childelements + textContent 224177.7 Ops/sec
fastest iter childelements + getAttributeNode 185570.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • fastest iter childelements

  • tag name

  • class name

  • id

  • array of node

  • array item

  • fastest iter childelements + getAttribute

  • fastest iter childelements + nodeValue

  • fastest iter childelements + textContent

  • fastest iter childelements + getAttributeNode


;