Test name | Executions per second |
---|---|
getElementById() | 4176827.5 Ops/sec |
getElementsByClassName() | 2542776.5 Ops/sec |
getElementsByTagName() | 3147301.5 Ops/sec |
querySelector(#id) | 2265597.8 Ops/sec |
querySelector(.id) | 3247830.5 Ops/sec |
querySelectorAll(#id) | 1095579.9 Ops/sec |
querySelectorAll(.id) | 1365771.0 Ops/sec |
jQuery(#id) | 1307141.2 Ops/sec |
jQuery(.id) | 648972.2 Ops/sec |
jQuery(tag#id) | 401317.2 Ops/sec |
jQuery(tag.id) | 427861.5 Ops/sec |
jQuery + getElementById | 1521289.1 Ops/sec |
jQuery + getElementsByClassName | 607097.4 Ops/sec |