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 + setAttribute 513185.2 Ops/sec
Array item 2043916.4 Ops/sec
fastest iter childelements + attributes 559170.4 Ops/sec
fastest iter childelements + nodeValue 2433263.2 Ops/sec
fastest iter childelements + textContent 1598468.4 Ops/sec
Array object 1988372.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • fastest iter childelements + setAttribute

  • Array item

  • fastest iter childelements + attributes

  • fastest iter childelements + nodeValue

  • fastest iter childelements + textContent

  • Array object