Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
childNodes 847286.5 Ops/sec
children 1173248.8 Ops/sec
firstChild nextSibling 4851090.0 Ops/sec
firstElementChild nextElementChild 7280348.0 Ops/sec
ChildNodes2 2160753.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2