Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Mac OS X 10.13.6
Desktop
2 years ago
Test name Executions per second
childNodes 445717.7 Ops/sec
children 647443.8 Ops/sec
firstChild nextSibling 3074444.2 Ops/sec
firstElementChild nextElementChild 3717403.8 Ops/sec
ChildNodes2 1169269.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2