Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
6 years ago
Test name Executions per second
jQuery 3.3.1 719785.9 Ops/sec
jQuery 2.1.4 597329.1 Ops/sec
Vanilla JS querySelector 641183.2 Ops/sec
Vanilla JS getElementById 1073912.6 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById