Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69
Mac OS X 10.13.6
Desktop
6 years ago
Test name Executions per second
jQuery Get ID 1475484.0 Ops/sec
jQuery Get Text 1035920.1 Ops/sec
jQuery Get Html 973959.4 Ops/sec
Zepto Get ID 1569413.9 Ops/sec
Zepto Get Text 738126.5 Ops/sec
Zepto Get Html 1012803.8 Ops/sec
Vanilla Get ID 4599020.0 Ops/sec
Vanilla Get Text 3678856.5 Ops/sec
Vanilla Get Html 2107592.2 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


;