Test case name | Result |
---|---|
Select Element by ID - Javascript | |
Add and remove Element - jQuery | |
Add and remove Element - Javascript | |
Loop through elements - jQuery | |
Loop through elements - Javascript | |
Select sub-element - jQuery | |
Select sub-element - Javascript | |
Get element by class name - jQuery | |
Get element by class name - Javascript | |
Get element by existing attribute - jQuery | |
Get element by existing attribute - Javascript | |
Get element by name - jQuery | |
Get element by name - Javascript | |
Get element by tag name - jQuery | |
Get element by tag name - Javascript | |
Change inner text - jQuery | |
Change inner text - Javascript | |
Select Element by ID - jQuery | |
Change CSS - Javascript | |
Change CSS - jQuery | |
Add and Remove Class - Javascript | |
Add and Remove Class - jQuery |
Test name | Executions per second |
---|---|
Select Element by ID - Javascript | 4134459.8 Ops/sec |
Change CSS - jQuery | 433937.9 Ops/sec |
Change CSS - Javascript | 835946.0 Ops/sec |
Select Element by ID - jQuery | 1943668.5 Ops/sec |
Change inner text - Javascript | 6935679.5 Ops/sec |
Change inner text - jQuery | 999589.1 Ops/sec |
Get element by tag name - Javascript | 4999914.5 Ops/sec |
Get element by tag name - jQuery | 727634.2 Ops/sec |
Get element by name - Javascript | 42726.2 Ops/sec |
Get element by name - jQuery | 36521.6 Ops/sec |
Get element by existing attribute - Javascript | 40026.3 Ops/sec |
Get element by existing attribute - jQuery | 40775.3 Ops/sec |
Get element by class name - Javascript | 4650000.0 Ops/sec |
Get element by class name - jQuery | 734301.3 Ops/sec |
Select sub-element - Javascript | 3312422.5 Ops/sec |
Select sub-element - jQuery | 1090460.5 Ops/sec |
Loop through elements - Javascript | 344670.2 Ops/sec |
Loop through elements - jQuery | 70062.8 Ops/sec |
Add and remove Element - Javascript | 696313.9 Ops/sec |
Add and remove Element - jQuery | 123785.2 Ops/sec |
Add and Remove Class - Javascript | 576377.9 Ops/sec |
Add and Remove Class - jQuery | 245314.8 Ops/sec |