Test name | Executions per second |
---|---|
getElementById() | 7858540.0 Ops/sec |
getElementsByClassName() | 2305212.0 Ops/sec |
getElementsByTagName() | 3768632.0 Ops/sec |
querySelector(#id) | 3809933.0 Ops/sec |
querySelector(.id) | 292872.4 Ops/sec |
querySelectorAll(#id) | 931516.8 Ops/sec |
querySelectorAll(.id) | 37874.1 Ops/sec |
jQuery(#id) | 1396331.0 Ops/sec |
jQuery(.id) | 193409.4 Ops/sec |
jQuery(tag#id) | 111542.8 Ops/sec |
jQuery(tag.id) | 27258.7 Ops/sec |
jQuery + getElementById | 1329059.0 Ops/sec |
jQuery + getElementsByClassName | 244950.9 Ops/sec |