Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Chrome 66
Mac OS X 10.12.0
Desktop
6 years ago
Test name Executions per second
jQuery 3.3.1 1510575.2 Ops/sec
jQuery 2.1.4 1491507.1 Ops/sec
Vanilla JS querySelector 1914145.0 Ops/sec
Vanilla JS getElementById 3570718.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1

  • jQuery 2.1.4

  • Vanilla JS querySelector

  • Vanilla JS getElementById


;