Test case name | Result |
---|---|
jQuery addClass | |
jQuery classList.add | |
querySelector classList.add | |
getElementById classList.add |
Test name | Executions per second |
---|---|
jQuery addClass | 459264.4 Ops/sec |
jQuery classList.add | 753642.2 Ops/sec |
querySelector classList.add | 1155388.9 Ops/sec |
getElementById classList.add | 1588467.1 Ops/sec |