Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Jquery versions Benchmarch (+3.6.0)
(version: 0)
SImple benchmark of jQuery versions
Comparing performance of:
1.8.3 vs 1.9.1 vs 1.12.14 vs 2.2.4 vs 3.2.1 vs 3.6.0
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="idSelector"></div> <div class="classSelector"></div> <ul id="iteration"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <div id="cssGetter" style="color: black;"></div> <div id="cssSetter" style="color: black;"></div> <div id="find"> <span></span> <div> <strong></strong> </div> </div> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script> <script> var $jq18 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script> <script> var $jq19 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script> <script> var $jq112 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"> </script> <script> var $jq224 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script> <script> var $jq321 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"> </script> <script> var $jq360 = $.noConflict(true); </script>
Script Preparation code:
function tests($) { // Filter Next $('#iteration li').filter(':first').next(); // Filter Prev $('#iteration li').filter(':last').prev(); // Non-existant Class $('.someClass'); // Non-existant ID $('#someID'); // Find $('#find').find('strong'); // Set color $('#cssSetter').css('color', 'red'); // Get color $('#cssGetter').css('color'); // Iteration $('#iteration li').each(function(i, e) { i++; }); // Class selector $('.classSelector'); // ID selector $('#idSelector'); }
Tests:
1.8.3
tests($jq18);
1.9.1
tests($jq18);
1.12.14
tests($jq112);
2.2.4
tests($jq224);
3.2.1
tests($jq321);
3.6.0
tests($jq360);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (6)
Previous results
Fork
Test case name
Result
1.8.3
1.9.1
1.12.14
2.2.4
3.2.1
3.6.0
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
I'll break down the provided benchmark and explain what's being tested, compared, and their pros/cons. **Benchmark Definition** The benchmark is a JavaScript microbenchmark that tests various aspects of jQuery functionality. The `tests($jqX)` function takes a jQuery version (`$jqX`) as an argument and executes a series of operations on it. These operations include: 1. Filtering the first or last element in a list. 2. Attempting to access a non-existent class or ID. 3. Finding a specific element within another element. 4. Setting or getting the color of an element's CSS style. 5. Iterating over a list using `each()`. **Library and Its Purpose** The primary library being tested is jQuery, which is a popular JavaScript library for DOM manipulation and event handling. In this benchmark, various versions of jQuery are tested to compare their performance in executing these operations. **Comparison of jQuery Versions** The benchmark compares the performance of different jQuery versions: * `3.6.0` (latest version at the time of writing) * `3.2.1` * `2.2.4` * `1.12.14` * `1.9.1` * `1.8.3` **What's Being Compared?** The benchmark is comparing the performance of each jQuery version in executing a series of operations within the `tests($jqX)` function. The results are measured by the number of executions per second (ExecutionsPerSecond) for each browser and device platform. **Pros/Cons of Each Version** Here's a brief summary of the pros and cons of each jQuery version: * **3.6.0**: This is the latest version, but it may not be widely supported by older browsers. + Pros: Optimized performance, new features. + Cons: May require more modern hardware and browser support. * **3.2.1**: An older version that still receives updates and has good browser support. + Pros: Still widely supported, relatively lightweight. + Cons: Not as optimized for performance as newer versions. * **2.2.4**: An even older version with less optimization and fewer features compared to the latest versions. + Pros: Very lightweight, may be suitable for very old browsers or embedded systems. + Cons: Limited functionality, poor performance. * **1.12.14** and **1.9.1**: Older versions that are still widely used but not as actively maintained. + Pros: Still supported by some older browsers, relatively stable. + Cons: Less optimized for performance, fewer features. Keep in mind that this is a simplified analysis, and the actual performance differences between these versions may vary depending on specific use cases and hardware configurations.
Related benchmarks:
Jquery versions Benchmarch
Jquery versions Benchmarch 2
Jquery versions Benchmark 3.1.1 vs 3.4.1
Jquery versions Benchmarch (latest - 3.5.1)
Jquery versions Benchmarch 3.6
Comments
Confirm delete:
Do you really want to delete benchmark?