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 601897.2 Ops/sec
children 1007114.5 Ops/sec
firstChild nextSibling 6606891.5 Ops/sec
firstElementChild nextElementChild 8885155.0 Ops/sec
ChildNodes2 1803919.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes

  • children

  • firstChild nextSibling

  • firstElementChild nextElementChild

  • ChildNodes2