Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Firefox 59
Linux
Other
6 years ago
Test name Executions per second
className 7841.6 Ops/sec
setAttribute 4518.5 Ops/sec
classList 2990.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;