Test name | Executions per second |
---|---|
getElementById | 3340903.0 Ops/sec |
jQuery (tag.id) | 562693.9 Ops/sec |
jQuery (tag#id) | 503682.5 Ops/sec |
jQuery (.id) | 815218.3 Ops/sec |
jQuery (#id) | 1740718.0 Ops/sec |
Cash + getElementsByClassName | 857847.3 Ops/sec |
Cash + getElementById | 1330855.0 Ops/sec |
Cash (tag.id) | 785171.3 Ops/sec |
jQuery + getElementById | 1386036.0 Ops/sec |
Cash (tag#id) | 677746.4 Ops/sec |
Cash (#id) | 1969907.0 Ops/sec |
querySelectorAll (.id) | 1505548.0 Ops/sec |
querySelectorAll (#id) | 1088063.0 Ops/sec |
querySelector (.id) | 2550390.0 Ops/sec |
querySelector (#id) | 1749938.0 Ops/sec |
getElementsByTagName | 2788778.0 Ops/sec |
getElementsByClassName | 1825733.0 Ops/sec |
Cash (.id) | 973636.5 Ops/sec |
jQuery + getElementsByClassName | 553197.1 Ops/sec |