Test name | Executions per second |
---|---|
getElementById() | 2196614.0 Ops/sec |
getElementsByClassName() | 1274981.0 Ops/sec |
getElementsByTagName() | 1683107.0 Ops/sec |
querySelector(#id) | 1325301.0 Ops/sec |
querySelector(.id) | 1734292.0 Ops/sec |
querySelectorAll(#id) | 538006.9 Ops/sec |
querySelectorAll(.id) | 599560.0 Ops/sec |
jQuery(#id) | 725875.4 Ops/sec |
jQuery(.id) | 374591.9 Ops/sec |
jQuery(tag#id) | 226141.8 Ops/sec |
jQuery(tag.id) | 280863.6 Ops/sec |
jQuery + getElementById | 953856.4 Ops/sec |
jQuery + getElementsByClassName | 353043.9 Ops/sec |