Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Linux
Desktop
one year ago
Test name Executions per second
childNodes 2125686.2 Ops/sec
children 2767060.2 Ops/sec
firstChild nextSibling 5150047.0 Ops/sec
firstElementChild nextElementChild 17877686.0 Ops/sec
ChildNodes2 2419665.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2