Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
classList with unique class 21.1 Ops/sec
className 22.4 Ops/sec
classList with multiple classes 23.7 Ops/sec
HTML Preparation code:
Tests:
  • classList with unique class

  • className

  • classList with multiple classes


;