jQuery 2.1.4 selector vs document.querySelector

Comparing speed of jQuery 2.1.4 selector and vanilla JS querySelector
3 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
Test name Executions per second
jQuery 2.1.4 1546945.0 Ops/sec
Vanilla JS 2209757.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 2.1.4

  • Vanilla JS

Open this result on MeasureThat.net