Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
childNodes 2076801.2 Ops/sec
children 2384012.2 Ops/sec
firstChild nextSibling 4440420.5 Ops/sec
firstElementChild nextElementChild 14878308.0 Ops/sec
ChildNodes2 2194217.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2