Run details:
Mozilla/5.0 (Linux; Android 11; Redmi Note 8T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
className 1439.1 Ops/sec
setAttribute 930.9 Ops/sec
classList 934.1 Ops/sec
dataset 725.8 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset