Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
childNodes 601158.4 Ops/sec
children 1028333.2 Ops/sec
firstChild nextSibling 6636663.5 Ops/sec
firstElementChild nextElementChild 8813548.0 Ops/sec
ChildNodes2 1801728.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2