Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Cash VS Umbrella VS jquery VS vanilla selectors
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Browser:
Safari 16
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Vanilla getById
11.2M/s
jquery ById
5.4M/s
cash ById
3.3M/s
Vanilla QuerySelectorAll
2.4M/s
umbrella ById
1.6M/s
View exact numbers
Test name
Executions per second
✓
Vanilla getById
11,209,997 Ops/sec
jquery ById
5,360,476 Ops/sec
cash ById
3,292,117 Ops/sec
Vanilla QuerySelectorAll
2,370,875 Ops/sec
umbrella ById
1,604,609 Ops/sec
HTML Preparation code:
<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/umbrella/3.2.3/umbrella.min.js"></script> <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");