Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Chrome 100
Windows
Desktop
2 years ago
Test name Executions per second
jquery Get ID 1209251.6 Ops/sec
jquery Get class 733604.9 Ops/sec
jQuery Get Text 670458.9 Ops/sec
jQuery Get Html 921413.0 Ops/sec
jQuery add class 453850.1 Ops/sec
Zepto Get ID 1293536.9 Ops/sec
Zepto get class 787550.4 Ops/sec
Zepto Get Text 570876.7 Ops/sec
Zepto Get Html 910667.2 Ops/sec
Zepto add class 299246.3 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


;