Run details:
Mozilla/5.0 (Linux; Android 9; Pixel 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36
Chrome Mobile 71
Android
Mobile
5 years ago
Test name Executions per second
className 2750.4 Ops/sec
setAttribute 1380.4 Ops/sec
classList 1361.0 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;