Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
4 days ago
Test name Executions per second
jQuery addClass 2292.4 Ops/sec
Dom7 each 332.9 Ops/sec
jQuery each 334.5 Ops/sec
Dom7 set attr 5839.0 Ops/sec
jQuery set attr 4849.1 Ops/sec
Dom7 css 4477.1 Ops/sec
jQuery css 2714.8 Ops/sec
Dom7 removeAttr 7690.7 Ops/sec
jQuery removeAttr 6649.7 Ops/sec
Dom7 set attr (Object) 3516.0 Ops/sec
jQuery set attr (Object) 2534.8 Ops/sec
Dom7 toggleClass 3020.7 Ops/sec
jQuery toggleClass 1015.8 Ops/sec
Dom7 removeClass 4405.2 Ops/sec
jQuery removeClass 3529.3 Ops/sec
Dom7 addClass 3520.0 Ops/sec
jQuery css (Object) 358.2 Ops/sec
Dom7 css (Object) 1218.2 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)