Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/108.0.1462.62 Version/16.0 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1
Mobile
one year ago
Test name Executions per second
.attribute 4756279.0 Ops/sec
setAttribute/removeAttribute 3903918.0 Ops/sec
setAttributeNode/removeAttributeNode 2728063.2 Ops/sec
attributes.setNamedItem/attributes.removeNamedITem 2684096.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • .attribute

  • setAttribute/removeAttribute

  • setAttributeNode/removeAttributeNode

  • attributes.setNamedItem/attributes.removeNamedITem