Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Firefox 65
Windows 7
Desktop
5 years ago
Test name Executions per second
jQuery 3.3.1 880447.1 Ops/sec
jQuery 2.1.4 792066.9 Ops/sec
Vanilla JS querySelector 993444.9 Ops/sec
Vanilla JS getElementById 942981.5 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById


;