Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Chrome 70
Mac OS X 10.12.6
Desktop
5 years ago
Test name Executions per second
Vanilla addClass 1233289.2 Ops/sec
Jquery addClass 268389.2 Ops/sec
Vanilla find element 3029243.2 Ops/sec
jQuery 481543.9 Ops/sec
HTML Preparation code:
Tests:
  • Vanilla addClass

  • Jquery addClass

  • Vanilla find element

  • jQuery


;