HTML Preparation code:
Script Preparation code:
Tests:
  • childNodes[0]

  • children[0]

  • firstChild

  • firstElementChild

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    childNodes[0]
    children[0]
    firstChild
    firstElementChild

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Linux
View result in a separate tab
Test name Executions per second
childNodes[0] 10484387.0 Ops/sec
children[0] 10450944.0 Ops/sec
firstChild 17028428.0 Ops/sec
firstElementChild 16418841.0 Ops/sec