Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
childNodes 573106.1 Ops/sec
children 1050237.5 Ops/sec
firstChild nextSibling 4662155.5 Ops/sec
firstElementChild nextElementChild 6192495.5 Ops/sec
ChildNodes2 1526953.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2