HTML Preparation code:
Script Preparation code:
Tests:
  • fastest iter childelements + setAttribute

  • Array item

  • fastest iter childelements + attributes

  • fastest iter childelements + nodeValue

  • fastest iter childelements + textContent

  • Array object

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    fastest iter childelements + setAttribute
    Array item
    fastest iter childelements + attributes
    fastest iter childelements + nodeValue
    fastest iter childelements + textContent
    Array object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95 on Linux
View result in a separate tab
Test name Executions per second
fastest iter childelements + setAttribute 513185.2 Ops/sec
Array item 2043916.4 Ops/sec
fastest iter childelements + attributes 559170.4 Ops/sec
fastest iter childelements + nodeValue 2433263.2 Ops/sec
fastest iter childelements + textContent 1598468.4 Ops/sec
Array object 1988372.6 Ops/sec


;