Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4350.0 Iron Safari/537.36
Chrome 85
Linux
Desktop
4 years ago
Test name Executions per second
jquery Get ID 1624661.1 Ops/sec
jquery Get class 1076835.0 Ops/sec
jQuery Get Text 1158687.6 Ops/sec
jQuery Get Html 1107388.9 Ops/sec
jQuery add class 710531.5 Ops/sec
Zepto Get ID 1906617.0 Ops/sec
Zepto get class 1215752.8 Ops/sec
Zepto Get Text 868952.1 Ops/sec
Zepto Get Html 1148737.1 Ops/sec
Zepto add class 526947.4 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


;