Test case name | Result |
---|---|
jQuery addClass | |
Dom7 addClass | |
jQuery removeClass | |
Dom7 removeClass | |
jQuery toggleClass | |
Dom7 toggleClass | |
jQuery set attr (Object) | |
Dom7 set attr (Object) | |
jQuery removeAttr | |
Dom7 removeAttr | |
jQuery css | |
Dom7 css | |
jQuery set attr | |
Dom7 set attr | |
jQuery each | |
Dom7 each | |
jQuery css (Object) | |
Dom7 css (Object) |
Test name | Executions per second |
---|---|
jQuery addClass | 4272.8 Ops/sec |
Dom7 each | 493.2 Ops/sec |
jQuery each | 949.9 Ops/sec |
Dom7 set attr | 2896.6 Ops/sec |
jQuery set attr | 5376.0 Ops/sec |
Dom7 css | 1788.2 Ops/sec |
jQuery css | 4425.5 Ops/sec |
Dom7 removeAttr | 6138.4 Ops/sec |
jQuery removeAttr | 8962.5 Ops/sec |
Dom7 set attr (Object) | 4443.1 Ops/sec |
jQuery set attr (Object) | 6723.7 Ops/sec |
Dom7 toggleClass | 3141.8 Ops/sec |
jQuery toggleClass | 1244.3 Ops/sec |
Dom7 removeClass | 4063.3 Ops/sec |
jQuery removeClass | 5891.0 Ops/sec |
Dom7 addClass | 3311.1 Ops/sec |
jQuery css (Object) | 458.9 Ops/sec |
Dom7 css (Object) | 1222.7 Ops/sec |