Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Windows
Desktop
5 years ago
Test name Executions per second
jquery Get ID 628595.3 Ops/sec
jquery Get class 376033.2 Ops/sec
jQuery Get Text 347177.8 Ops/sec
jQuery Get Html 285237.7 Ops/sec
jQuery add class 214195.8 Ops/sec
Zepto Get ID 1064499.5 Ops/sec
Zepto get class 294620.7 Ops/sec
Zepto Get Text 144605.5 Ops/sec
Zepto Get Html 229345.5 Ops/sec
Zepto add class 184786.2 Ops/sec
HTML Preparation code:
Tests:
  • jquery Get ID

  • jquery Get class

  • jQuery Get Text

  • jQuery Get Html

  • jQuery add class

  • Zepto Get ID

  • Zepto get class

  • Zepto Get Text

  • Zepto Get Html

  • Zepto add class


;