Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Chrome 72
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
jQuery 3.3.1 1407542.9 Ops/sec
jQuery 2.1.4 1251917.8 Ops/sec
Vanilla JS querySelector 1925676.5 Ops/sec
Vanilla JS getElementById 4076807.5 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById


;