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 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Test name |
Executions per second |
jQuery |
1329303.0 Ops/sec |
Vanilla JS |
3703845.0 Ops/sec |
Open this result on MeasureThat.net