Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
jQuery addClass 1360.0 Ops/sec
Dom7 addClass 1433.6 Ops/sec
jQuery removeClass 1959.6 Ops/sec
Dom7 removeClass 2405.0 Ops/sec
jQuery toggleClass 609.5 Ops/sec
Dom7 toggleClass 1773.2 Ops/sec
jQuery set attr (Object) 1379.0 Ops/sec
Dom7 set attr (Object) 1526.6 Ops/sec
jQuery removeAttr 3947.6 Ops/sec
Dom7 removeAttr 4790.8 Ops/sec
jQuery css 1349.4 Ops/sec
Dom7 css 2142.5 Ops/sec
jQuery set attr 2161.5 Ops/sec
Dom7 set attr 2805.0 Ops/sec
jQuery each 114.6 Ops/sec
Dom7 each 107.5 Ops/sec
jQuery css (Object) 54.3 Ops/sec
Dom7 css (Object) 519.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery addClass

  • Dom7 each

  • jQuery each

  • Dom7 set attr

  • jQuery set attr

  • Dom7 css

  • jQuery css

  • Dom7 removeAttr

  • jQuery removeAttr

  • Dom7 set attr (Object)

  • jQuery set attr (Object)

  • Dom7 toggleClass

  • jQuery toggleClass

  • Dom7 removeClass

  • jQuery removeClass

  • Dom7 addClass

  • jQuery css (Object)

  • Dom7 css (Object)