Run details:
Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-A715F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
Chrome Mobile 79
Android
Mobile
4 years ago
Test name Executions per second
.attribute 885907.7 Ops/sec
setAttribute/removeAttribute 552174.1 Ops/sec
setAttributeNode/removeAttributeNode 456781.8 Ops/sec
attributes.setNamedItem/attributes.removeNamedITem 373396.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • .attribute

  • setAttribute/removeAttribute

  • setAttributeNode/removeAttributeNode

  • attributes.setNamedItem/attributes.removeNamedITem


;