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 612684.2 Ops/sec
jquery Get class 284853.8 Ops/sec
jQuery Get Text 333581.5 Ops/sec
jQuery Get Html 390499.8 Ops/sec
jQuery add class 215872.7 Ops/sec
Zepto Get ID 705275.2 Ops/sec
Zepto get class 315332.8 Ops/sec
Zepto Get Text 257551.2 Ops/sec
Zepto Get Html 347107.8 Ops/sec
Zepto add class 175301.8 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


;