Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6
Safari 11
Mac OS X 10.13.3
Desktop
6 years ago
Test name Executions per second
jQuery 3.3.1 1609721.0 Ops/sec
jQuery 2.1.4 1583538.4 Ops/sec
Vanilla JS querySelector 2435643.8 Ops/sec
Vanilla JS getElementById 3177332.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById