Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 OPR/90.0.4480.84
Opera 90
Windows 7
Desktop
2 years ago
Test name Executions per second
childNodes 532492.6 Ops/sec
children 802479.9 Ops/sec
firstChild nextSibling 3998932.0 Ops/sec
firstElementChild nextElementChild 5430831.0 Ops/sec
ChildNodes2 1282322.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2