Test name | Executions per second |
---|---|
getElementById() | 686356.9 Ops/sec |
getElementsByClassName() | 537610.5 Ops/sec |
getElementsByTagName() | 525285.4 Ops/sec |
querySelector(#id) | 466617.3 Ops/sec |
querySelector(.id) | 336995.6 Ops/sec |
querySelectorAll(#id) | 218346.8 Ops/sec |
querySelectorAll(.id) | 220189.7 Ops/sec |
jQuery(#id) | 535637.4 Ops/sec |
jQuery(.id) | 180166.3 Ops/sec |
jQuery(tag#id) | 90099.3 Ops/sec |
jQuery(tag.id) | 87342.6 Ops/sec |
jQuery + getElementById | 509759.0 Ops/sec |
jQuery + getElementsByClassName | 137695.5 Ops/sec |