Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
2 years ago
Test name Executions per second
jQuery addClass 1253.4 Ops/sec
Dom7 addClass 3012.6 Ops/sec
jQuery removeClass 4100.8 Ops/sec
Dom7 removeClass 3320.8 Ops/sec
jQuery toggleClass 661.1 Ops/sec
Dom7 toggleClass 1989.8 Ops/sec
jQuery set attr (Object) 2277.8 Ops/sec
Dom7 set attr (Object) 2807.3 Ops/sec
jQuery removeAttr 7310.7 Ops/sec
Dom7 removeAttr 6635.8 Ops/sec
jQuery css 1589.1 Ops/sec
Dom7 css 1953.9 Ops/sec
jQuery set attr 4197.4 Ops/sec
Dom7 set attr 5523.9 Ops/sec
jQuery each 236.6 Ops/sec
Dom7 each 229.7 Ops/sec
jQuery css (Object) 201.1 Ops/sec
Dom7 css (Object) 400.8 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)