Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
jQuery 3.3.1 2873805.8 Ops/sec
jQuery 2.1.4 2480880.5 Ops/sec
Vanilla JS querySelector 2000498.9 Ops/sec
Vanilla JS getElementById 2934761.5 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById