Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_0 like Mac OS X; en-US) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/17A5572a UCBrowser/11.3.5.1203 Mobile
UC Browser 11
iOS 13.0
Mobile
5 years ago
Test name Executions per second
Vanilla Get ID 1431573.8 Ops/sec
jQuery Get ID 279801.9 Ops/sec
Zepto Get Html 122131.5 Ops/sec
Zepto Get Text 66524.4 Ops/sec
Zepto Get ID 195072.4 Ops/sec
Bliss Get Text 138851.9 Ops/sec
Bliss Get ID 148006.8 Ops/sec
jQuery Get Text 126196.6 Ops/sec
Umbrella Get HTML 70424.0 Ops/sec
Umbrella Get ID 83729.5 Ops/sec
Cash Get Html 153994.6 Ops/sec
Cash Get Text 187067.9 Ops/sec
Cash Get ID 220556.5 Ops/sec
Vanilla Get Html 717385.7 Ops/sec
Vanilla Get Text 1138486.0 Ops/sec
Umbrella Get Text 83922.5 Ops/sec
jQuery Get Html 123108.6 Ops/sec
HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"><script>
2
<script>jQuery.noConflict();</script>
3
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.0/cash.min.js"></script>
4
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
5
<script src="https://cdnjs.cloudflare.com/ajax/libs/blissfuljs/1.0.6/bliss.min.js"></script>
6
<script src="https://cdnjs.cloudflare.com/ajax/libs/umbrella/3.2.3/umbrella.min.js"></script>
7
<script src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js"></script>
8
<div id="foo">Hello World</div>
Tests:
  • Vanilla Get ID

     
    var text = document.getElementById("foo");
  • Vanilla Get ID (QuerySelector)

     
    var text = document.querySelector("#foo");
  • Vanilla Get ID (QuerySelectorAll)

     
    var text = document.querySelectorAll("#foo");
  • Vanilla Get Text

     
    var text = document.getElementById("foo").textContent;
  • Vanilla Get HTML

     
    var text = document.getElementById("foo").innerHTML;
  • Cash Get ID

     
    var text = $("#foo");
  • Cash Get Text

     
    var text = $("#foo").text();
  • Cash Get HTML

     
    var text = $("#foo").html();
  • jQuery Get ID

     
    var text = jQuery("#foo");
  • jQuery Get Text

     
    var text = jQuery("#foo").text();
  • jQuery Get HTML

     
    var text = jQuery("#foo").html();
  • Zepto Get ID

     
    var text = Zepto("#foo");
  • Zepto Get Text

     
    var text = Zepto("#foo").text();
  • Zepto Get HTML

     
    var text = Zepto("#foo").html();
  • Bliss Get ID

     
    var text = Bliss("#foo");
  • Bliss Get Text

     
    var text = Bliss("#foo").textContent;
  • Bliss Get HTML

     
    var text = Bliss("#foo").htmlContent;
  • Umbrella Get ID

     
    var text = u("#foo");
  • Umbrella Get Text

     
    var text = u("#foo").text();
  • Umbrella Get HTML

     
    var text = u("#foo").html();
  • Ext Get ID

     
    var text = Ext.get('foo');