Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Ubuntu
Desktop
one year ago
Test name Executions per second
childNodes 2789054.2 Ops/sec
children 3001183.8 Ops/sec
firstChild nextSibling 9117352.0 Ops/sec
firstElementChild nextElementChild 20458244.0 Ops/sec
ChildNodes2 2692555.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2