Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
childNodes 627129.4 Ops/sec
children 1033554.1 Ops/sec
firstChild nextSibling 4891157.0 Ops/sec
firstElementChild nextElementChild 7081943.0 Ops/sec
ChildNodes2 1805762.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2