Run details:
Mozilla/5.0 (Linux; Android 8.1.0; BBF100-2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Mobile Safari/537.36
Chrome Mobile 84
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
className 1755.1 Ops/sec
setAttribute 1055.5 Ops/sec
classList 1101.1 Ops/sec
dataset 909.1 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset