Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.47
Chrome 101
Windows
Desktop
2 years ago
Test name Executions per second
childNodes 302175.5 Ops/sec
children 389234.0 Ops/sec
firstChild nextSibling 2757543.8 Ops/sec
firstElementChild nextElementChild 2118666.8 Ops/sec
ChildNodes2 465590.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2


;