Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Windows
Desktop
6 years ago
Test name Executions per second
jQuery Get ID 3038641.2 Ops/sec
jQuery Get Text 1820388.2 Ops/sec
jQuery Get Html 1377064.1 Ops/sec
Zepto Get ID 2251804.5 Ops/sec
Zepto Get Text 734059.5 Ops/sec
Zepto Get Html 1138596.2 Ops/sec
Vanilla Get ID 3580879.0 Ops/sec
Vanilla Get Text 2534226.5 Ops/sec
Vanilla Get Html 2027032.4 Ops/sec
HTML Preparation code:
Tests:
  • jQuery Get ID

  • jQuery Get Text

  • jQuery Get Html

  • Zepto Get ID

  • Zepto Get Text

  • Zepto Get Html

  • Vanilla Get ID

  • Vanilla Get Text

  • Vanilla Get Html


;