Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Windows 7
Desktop
2 years ago
Test name Executions per second
childNodes 2064442.2 Ops/sec
children 2301747.0 Ops/sec
firstChild nextSibling 4408092.0 Ops/sec
firstElementChild nextElementChild 15806847.0 Ops/sec
ChildNodes2 1992413.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2