Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36
Chromium 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
jQuery addClass 459637.5 Ops/sec
Javascript classList.add 1765317.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery addClass

  • Javascript classList.add