Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Windows
Desktop
3 years ago
Test name Executions per second
setAttribute(...) 135350.4 Ops/sec
classList.add(...) 54821.9 Ops/sec
classList.value 116450.5 Ops/sec
ClassName 219912.5 Ops/sec
HTML Preparation code:
Tests:
  • setAttribute(...)

  • classList.add(...)

  • classList.value

  • ClassName