Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Windows
Desktop
7 months ago
Test name Executions per second
childNodes 4038423.0 Ops/sec
children 4600107.5 Ops/sec
firstChild nextSibling 15796428.0 Ops/sec
firstElementChild nextElementChild 31800386.0 Ops/sec
ChildNodes2 3218903.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2