Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one month ago
Test name Executions per second
jQuery addClass 2617.0 Ops/sec
Dom7 each 387.1 Ops/sec
jQuery each 397.4 Ops/sec
Dom7 set attr 5576.2 Ops/sec
jQuery set attr 5195.7 Ops/sec
Dom7 css 3213.7 Ops/sec
jQuery css 2367.0 Ops/sec
Dom7 removeAttr 7300.9 Ops/sec
jQuery removeAttr 7229.6 Ops/sec
Dom7 set attr (Object) 3251.3 Ops/sec
jQuery set attr (Object) 2614.3 Ops/sec
Dom7 toggleClass 2749.6 Ops/sec
jQuery toggleClass 1060.5 Ops/sec
Dom7 removeClass 3536.4 Ops/sec
jQuery removeClass 3891.0 Ops/sec
Dom7 addClass 2958.0 Ops/sec
jQuery css (Object) 335.5 Ops/sec
Dom7 css (Object) 807.1 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)