jQuery by id vs Document.getElementById
Comparing speed of getting element by id with jQuery vs Vanilla JS
5 years ago
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Test name |
Executions per second |
jQuery |
0.0 Ops/sec |
Vanilla JS |
3488578.0 Ops/sec |
Open this result on MeasureThat.net