Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.60
Chrome 87
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
jQuery 3.3.1 1597499.8 Ops/sec
jQuery 1.8.3 1546565.8 Ops/sec
Vanilla JS querySelector 2314032.0 Ops/sec
Vanilla JS getElementById 4410787.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 1.8.3

  • Vanilla JS querySelector

  • Vanilla JS getElementById