HTML Preparation code:
Script Preparation code:
Tests:
  • .attribute

  • setAttribute/removeAttribute

  • setAttributeNode/removeAttributeNode

  • attributes.setNamedItem/attributes.removeNamedITem

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .attribute
    setAttribute/removeAttribute
    setAttributeNode/removeAttributeNode
    attributes.setNamedItem/attributes.removeNamedITem

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 OPR/119.0.0.0
Opera 119 on Windows
View result in a separate tab
Test name Executions per second
.attribute 5200296.0 Ops/sec
setAttribute/removeAttribute 4387387.5 Ops/sec
setAttributeNode/removeAttributeNode 3588429.0 Ops/sec
attributes.setNamedItem/attributes.removeNamedITem 2694158.0 Ops/sec