Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.6.1
Mobile
2 years ago
Test name Executions per second
childNodes 3187541.5 Ops/sec
children 1625395.4 Ops/sec
firstChild nextSibling 10980905.0 Ops/sec
firstElementChild nextElementChild 9850424.0 Ops/sec
ChildNodes2 3963895.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2