jQuery by id vs Document.getElementById 2.0

Comparing speed of getting element by id with jQuery vs Vanilla JS
one month ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36
Test name Executions per second
jQuery 1142448.0 Ops/sec
Vanilla JS 3068032.0 Ops/sec
HTML Preparation code:
  • jQuery

  • Vanilla JS

Open this result on MeasureThat.net