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 714649.2 Ops/sec
jquery Get class 341015.4 Ops/sec
jQuery Get Text 327513.4 Ops/sec
jQuery Get Html 266449.8 Ops/sec
jQuery add class 239004.6 Ops/sec
Zepto Get ID 868126.4 Ops/sec
Zepto get class 303086.4 Ops/sec
Zepto Get Text 204411.6 Ops/sec
Zepto Get Html 301675.9 Ops/sec
Zepto add class 221607.6 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


;