Run details:
Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android 7.1.2
Mobile
2 years ago
Test name Executions per second
className 548.5 Ops/sec
setAttribute 261.1 Ops/sec
classList 367.1 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;