Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5S)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36
Chrome Mobile 86
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
jQuery addClass 46038.8 Ops/sec
Javascript classList.add 175465.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery addClass

  • Javascript classList.add