Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Linux
Desktop
one year ago
Test name Executions per second
childNodes 2180664.0 Ops/sec
children 2572813.8 Ops/sec
firstChild nextSibling 7842815.0 Ops/sec
firstElementChild nextElementChild 16974720.0 Ops/sec
ChildNodes2 2122797.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2