Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36
Chrome Mobile 74
Android
Mobile
4 years ago
Test name Executions per second
jQuery 3.3.1 593509.8 Ops/sec
jQuery 2.1.4 545279.0 Ops/sec
Vanilla JS querySelector 613368.2 Ops/sec
Vanilla JS getElementById 1492184.9 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById