Run details:
Mozilla/5.0 (Android 10; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122
Android
Mobile
10 months ago
Test name Executions per second
className 4512.1 Ops/sec
setAttribute 3009.4 Ops/sec
classList 1250.3 Ops/sec
dataset 1394.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset