Test name | Executions per second |
---|---|
getElementById() | 4211030.0 Ops/sec |
getElementsByClassName() | 2590031.0 Ops/sec |
getElementsByTagName() | 3216562.0 Ops/sec |
querySelector(#id) | 2253938.0 Ops/sec |
querySelector(.id) | 3254522.2 Ops/sec |
querySelectorAll(#id) | 877255.9 Ops/sec |
querySelectorAll(.id) | 1185976.6 Ops/sec |
jQuery(#id) | 1445705.0 Ops/sec |
jQuery(.id) | 652983.6 Ops/sec |
jQuery(tag#id) | 379642.5 Ops/sec |
jQuery(tag.id) | 379338.2 Ops/sec |
jQuery + getElementById | 1566329.0 Ops/sec |
jQuery + getElementsByClassName | 610420.7 Ops/sec |