Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.0 Win64.r.20PX50
Chrome 90
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
jQuery 3.3.1 1242084.6 Ops/sec
jQuery 2.1.4 1148519.9 Ops/sec
Vanilla JS querySelector 1779540.0 Ops/sec
Vanilla JS getElementById 3787715.2 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById