Test name | Executions per second |
---|---|
Vanilla Get ID | 3745972.0 Ops/sec |
Umbrella Get Text | 328965.3 Ops/sec |
Umbrella Get ID | 329232.4 Ops/sec |
Bliss Get HTML | 1440558.8 Ops/sec |
Bliss Get Text | 1362771.0 Ops/sec |
Bliss Get ID | 1472121.6 Ops/sec |
Zepto Get HTML | 1292018.2 Ops/sec |
Zepto Get Text | 897191.6 Ops/sec |
Zepto Get ID | 2026974.4 Ops/sec |
Umbrella Get HTML | 302657.4 Ops/sec |
jQuery Get HTML | 1214410.9 Ops/sec |
jQuery Get ID | 1852238.0 Ops/sec |
Cash Get HTML | 1379203.2 Ops/sec |
Cash Get Text | 1757612.1 Ops/sec |
Cash Get ID | 2074016.1 Ops/sec |
Vanilla Get HTML | 2153692.5 Ops/sec |
Vanilla Get Text | 3105563.0 Ops/sec |
Vanilla Get ID (QuerySelectorAll) | 1017208.3 Ops/sec |
Vanilla Get ID (QuerySelector) | 1811065.9 Ops/sec |
jQuery Get Text | 1306884.5 Ops/sec |
Ext Get ID | 1480914.6 Ops/sec |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"><script>
<script>jQuery.noConflict();</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.0/cash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/blissfuljs/1.0.6/bliss.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/umbrella/3.2.3/umbrella.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js"></script>
<div id="foo">Hello World</div>
var text = document.getElementById("foo");
var text = document.querySelector("#foo");
var text = document.querySelectorAll("#foo");
var text = document.getElementById("foo").textContent;
var text = document.getElementById("foo").innerHTML;
var text = $("#foo");
var text = $("#foo").text();
var text = $("#foo").html();
var text = jQuery("#foo");
var text = jQuery("#foo").text();
var text = jQuery("#foo").html();
var text = Zepto("#foo");
var text = Zepto("#foo").text();
var text = Zepto("#foo").html();
var text = Bliss("#foo");
var text = Bliss("#foo").textContent;
var text = Bliss("#foo").htmlContent;
var text = u("#foo");
var text = u("#foo").text();
var text = u("#foo").html();
var text = Ext.get('foo');