Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14
Safari 10
Mac OS X 10.12.1
Other
7 years ago
Test name Executions per second
className 23025.1 Ops/sec
setAttribute 12407.1 Ops/sec
classList 8111.8 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;