Run details:
Mozilla/5.0 (Linux; Android 11; RMX1971) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
one year ago
Test name Executions per second
jQuery addClass 795.9 Ops/sec
Dom7 addClass 899.9 Ops/sec
jQuery removeClass 1297.1 Ops/sec
Dom7 removeClass 1166.8 Ops/sec
jQuery toggleClass 140.0 Ops/sec
Dom7 toggleClass 274.3 Ops/sec
jQuery set attr (Object) 762.1 Ops/sec
Dom7 set attr (Object) 772.6 Ops/sec
jQuery removeAttr 2373.2 Ops/sec
Dom7 removeAttr 2522.3 Ops/sec
jQuery css 570.8 Ops/sec
Dom7 css 889.3 Ops/sec
jQuery set attr 1457.8 Ops/sec
Dom7 set attr 1561.3 Ops/sec
jQuery each 83.8 Ops/sec
Dom7 each 83.2 Ops/sec
jQuery css (Object) 42.4 Ops/sec
Dom7 css (Object) 154.5 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)