Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
fastest iter childelements 1264905.4 Ops/sec
tag name 827169.4 Ops/sec
class name 810626.9 Ops/sec
id 608968.5 Ops/sec
array of node 792838.8 Ops/sec
array item 2102137.2 Ops/sec
fastest iter childelements + getAttribute 2078095.9 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