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/umbrella/3.2.3/umbrella.min.js"></script>
5
<div id="foo">Hello World</div>
Tests:
  • Vanilla getById

     
    var text = document.getElementById("foo");
  • Vanilla QuerySelectorAll

     
    var text = document.querySelectorAll("#foo");
  • cash ById

     
    var text = $("#foo");
  • umbrella ById

     
    var text = u("#foo");
  • jquery ById

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Vanilla getById
    Vanilla QuerySelectorAll
    cash ById
    umbrella ById
    jquery ById

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Ubuntu
View result in a separate tab
Test name Executions per second
Vanilla getById 7467435.5 Ops/sec
Vanilla QuerySelectorAll 1601557.9 Ops/sec
cash ById 8333200.0 Ops/sec
umbrella ById 667227.9 Ops/sec
jquery ById 8146709.0 Ops/sec