Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 OPR/83.0.4254.27
Opera 83
Windows 7
Desktop
2 years ago
Test name Executions per second
childNodes 532480.5 Ops/sec
children 786341.8 Ops/sec
firstChild nextSibling 3934783.0 Ops/sec
firstElementChild nextElementChild 5343350.0 Ops/sec
ChildNodes2 1333549.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2