Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Windows 7
Desktop
5 years ago
Test name Executions per second
jQuery 3.3.1 2557782.0 Ops/sec
jQuery 2.1.4 2347459.5 Ops/sec
Vanilla JS querySelector 2717299.0 Ops/sec
Vanilla JS getElementById 2692503.8 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById