Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Linux
Desktop
4 years ago
Test name Executions per second
className 13979.9 Ops/sec
setAttribute 7790.6 Ops/sec
classList 4041.7 Ops/sec
dataset 4372.3 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset