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 575113.1 Ops/sec
jquery Get class 284917.7 Ops/sec
jQuery Get Text 457308.1 Ops/sec
jQuery Get Html 313937.8 Ops/sec
jQuery add class 219790.5 Ops/sec
Zepto Get ID 675802.0 Ops/sec
Zepto get class 374565.8 Ops/sec
Zepto Get Text 239077.8 Ops/sec
Zepto Get Html 317534.3 Ops/sec
Zepto add class 161313.5 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


;