Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows 8.1
Desktop
one year ago
Test name Executions per second
setAttribute(...) 95989.6 Ops/sec
classList.add(...) 41357.7 Ops/sec
classList.value 84337.4 Ops/sec
ClassName 163495.4 Ops/sec
HTML Preparation code:
Tests:
  • setAttribute(...)

  • classList.add(...)

  • classList.value

  • ClassName