Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
one month ago
Test name Executions per second
.attribute 1338766.1 Ops/sec
setAttribute/removeAttribute 1001026.7 Ops/sec
setAttributeNode/removeAttributeNode 847155.8 Ops/sec
attributes.setNamedItem/attributes.removeNamedITem 707823.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • .attribute

  • setAttribute/removeAttribute

  • setAttributeNode/removeAttributeNode

  • attributes.setNamedItem/attributes.removeNamedITem