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 642828.6 Ops/sec
children 1049567.9 Ops/sec
firstChild nextSibling 4834128.5 Ops/sec
firstElementChild nextElementChild 6949647.0 Ops/sec
ChildNodes2 1807659.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2


;