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 615470.9 Ops/sec
children 1014023.6 Ops/sec
firstChild nextSibling 6647420.0 Ops/sec
firstElementChild nextElementChild 8842746.0 Ops/sec
ChildNodes2 1813148.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2