Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1
Mobile Safari 10
iOS 10.3.1
iPhone
7 years ago
Test name Executions per second
className 20588.4 Ops/sec
setAttribute 11409.5 Ops/sec
classList 8122.6 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;