Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Windows
Desktop
2 years ago
Test name Executions per second
childNodes 1560791.0 Ops/sec
children 1725702.2 Ops/sec
firstChild nextSibling 3758834.8 Ops/sec
firstElementChild nextElementChild 12472377.0 Ops/sec
ChildNodes2 1540370.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2