HTML Preparation code:
AخA
 
1
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
2
<script>
3
  jQuery.noConflict();  
4
</script>
5
<script src="https://cdnjs.cloudflare.com/ajax/libs/blissfuljs/1.0.4/bliss.min.js"></script>
6
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.0/cash.min.js" integrity="sha512-sgDgZX/GgfD7qSeMjPN/oE9EQgXZJW55FIjdexVT60QerG2gAWhR9QDQEGt3O90Dy9jVcwMWsoTMhLgldIiKXw==" crossorigin="anonymous"></script>
7
<div id="foo">Hello World</div>
Tests:
  • Vanilla Get ID

     
    var text = document.getElementById("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();
  • Bliss Get ID

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

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

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

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

     
    var text = jQuery("#foo").html();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Vanilla Get ID
    Vanilla Get Text
    Vanilla Get Html
    Cash Get ID
    Cash Get Text
    Cash Get Html
    Bliss Get ID
    Bliss Get Text
    jQuery Get ID
    jQuery Get Text
    jQuery Get Html

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Vanilla Get ID 14805622.0 Ops/sec
Vanilla Get Text 10148376.0 Ops/sec
Vanilla Get Html 8515400.0 Ops/sec
Cash Get ID 6742692.0 Ops/sec
Cash Get Text 5515666.0 Ops/sec
Cash Get Html 5110811.5 Ops/sec
Bliss Get ID 5126366.5 Ops/sec
Bliss Get Text 4400644.0 Ops/sec
jQuery Get ID 4996283.0 Ops/sec
jQuery Get Text 3501243.2 Ops/sec
jQuery Get Html 3862768.0 Ops/sec