Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows 8.1
Desktop
one year ago
Test name Executions per second
JQuery addClass 826779.6 Ops/sec
Vanilla JS Add Class 1629235.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • JQuery addClass

  • Vanilla JS Add Class