Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92
Mac OS X 10.14
Desktop
3 years ago
Test name Executions per second
jquery Get ID 4323141.0 Ops/sec
jquery Get class 1002931.4 Ops/sec
jQuery Get Text 2133848.2 Ops/sec
jQuery Get Html 2049898.0 Ops/sec
jQuery add class 1086928.2 Ops/sec
Zepto Get ID 3679769.2 Ops/sec
Zepto get class 1880779.9 Ops/sec
Zepto Get Text 1180214.8 Ops/sec
Zepto Get Html 1903607.6 Ops/sec
Zepto add class 882298.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


;