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[0] 4606512.5 Ops/sec
children[0] 4568769.5 Ops/sec
firstChild 7608514.5 Ops/sec
firstElementChild 7886893.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes[0]

  • children[0]

  • firstChild

  • firstElementChild


;