<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 = u("#foo").text();
var text = u("#foo");
var text = Bliss("#foo").htmlContent;
var text = Bliss("#foo").textContent;
var text = Bliss("#foo");
var text = Zepto("#foo").html();
var text = Zepto("#foo").text();
var text = Zepto("#foo");
var text = u("#foo").html();
var text = jQuery("#foo").html();
var text = jQuery("#foo");
var text = $("#foo").html();
var text = $("#foo").text();
var text = $("#foo");
var text = document.getElementById("foo").innerHTML;
var text = document.getElementById("foo").textContent;
var text = document.querySelectorAll("#foo");
var text = document.querySelector("#foo");
var text = jQuery("#foo").text();
var text = Ext.get('foo');
--enable-precise-memory-info
flag.
Test case name | Result |
---|---|
Vanilla Get ID | |
Umbrella Get Text | |
Umbrella Get ID | |
Bliss Get HTML | |
Bliss Get Text | |
Bliss Get ID | |
Zepto Get HTML | |
Zepto Get Text | |
Zepto Get ID | |
Umbrella Get HTML | |
jQuery Get HTML | |
jQuery Get ID | |
Cash Get HTML | |
Cash Get Text | |
Cash Get ID | |
Vanilla Get HTML | |
Vanilla Get Text | |
Vanilla Get ID (QuerySelectorAll) | |
Vanilla Get ID (QuerySelector) | |
jQuery Get Text | |
Ext Get ID |
Test name | Executions per second |
---|---|
Vanilla Get ID | 2112252.2 Ops/sec |
Vanilla Get ID (QuerySelector) | 942752.4 Ops/sec |
Vanilla Get ID (QuerySelectorAll) | 530744.2 Ops/sec |
Vanilla Get Text | 1473653.6 Ops/sec |
Vanilla Get HTML | 1314455.2 Ops/sec |
Cash Get ID | 783344.2 Ops/sec |
Cash Get Text | 646839.8 Ops/sec |
Cash Get HTML | 656264.7 Ops/sec |
jQuery Get ID | 795824.1 Ops/sec |
jQuery Get Text | 497366.1 Ops/sec |
jQuery Get HTML | 574727.7 Ops/sec |
Zepto Get ID | 835456.1 Ops/sec |
Zepto Get Text | 396432.3 Ops/sec |
Zepto Get HTML | 644583.2 Ops/sec |
Bliss Get ID | 777670.4 Ops/sec |
Bliss Get Text | 590902.1 Ops/sec |
Bliss Get HTML | 766046.5 Ops/sec |
Umbrella Get ID | 197066.0 Ops/sec |
Umbrella Get Text | 192625.2 Ops/sec |
Umbrella Get HTML | 174155.6 Ops/sec |
Ext Get ID | 380102.0 Ops/sec |
I'll dive straight into it.
Based on the provided data, I will provide some insights and observations:
Please provide more context or information about the tests, such as their purpose or expected outcomes, to gain a deeper understanding of the data.