Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.30 Safari/537.36
Chrome 71
Mac OS X 10.13.6
Desktop
6 years ago
Test name Executions per second
jQuery 3.3.1 1373758.0 Ops/sec
jQuery 1.9.0 1287868.0 Ops/sec
Vanilla JS querySelector 1951805.1 Ops/sec
Vanilla JS getElementById 3918754.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 1.9.0

  • Vanilla JS querySelector

  • Vanilla JS getElementById