Run details:
Mozilla/5.0 (Linux; Android 12; IV2201) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.126 Mobile Safari/537.36 OPR/72.3.3767.68685
Opera Mobile 72
Android
Mobile
one year ago
Test name Executions per second
className 2032.2 Ops/sec
setAttribute 1349.0 Ops/sec
classList 1371.0 Ops/sec
dataset 1088.6 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset