Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63
Opera 80
Windows 7
Desktop
3 years ago
Test name Executions per second
childNodes[0] 5659408.5 Ops/sec
children[0] 5432743.0 Ops/sec
firstChild 8785141.0 Ops/sec
firstElementChild 8679328.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes[0]

  • children[0]

  • firstChild

  • firstElementChild