Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
8 months ago
Test name Executions per second
jQuery addClass 2723.3 Ops/sec
Dom7 addClass 3652.9 Ops/sec
jQuery removeClass 3613.7 Ops/sec
Dom7 removeClass 4348.9 Ops/sec
jQuery toggleClass 847.7 Ops/sec
Dom7 toggleClass 2918.5 Ops/sec
jQuery set attr (Object) 2567.3 Ops/sec
Dom7 set attr (Object) 2799.2 Ops/sec
jQuery removeAttr 2182.8 Ops/sec
Dom7 removeAttr 8725.1 Ops/sec
jQuery css 3426.2 Ops/sec
Dom7 css 4347.8 Ops/sec
jQuery set attr 5096.6 Ops/sec
Dom7 set attr 5374.0 Ops/sec
jQuery each 441.7 Ops/sec
Dom7 each 442.0 Ops/sec
jQuery css (Object) 520.1 Ops/sec
Dom7 css (Object) 1212.0 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)