Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Jquery versions Benchmarch v2
(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.4 vs 3.6.4.S
Created:
3 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 src="https://code.jquery.com/jquery-3.6.4.min.js"></script> <script> var $jq364 = $.noConflict(true); </script> <script src="https://code.jquery.com/jquery-3.6.4.slim.min.js"></script> <script> var $jq364s = $.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.4
tests($jq364);
3.6.4.S
tests($jq364s);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (7)
Previous results
Fork
Test case name
Result
1.8.3
1.9.1
1.12.14
2.2.4
3.2.1
3.6.4
3.6.4.S
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 JSON data and explain what's being tested, compared, and their pros and cons. **Benchmark Definition** The benchmark is a set of tests that measure the performance of different jQuery versions. The test cases are defined in the "Individual test cases" section. Each test case uses the `tests()` function, which takes a jQuery version as an argument. For example, the first test case uses `$jq18`, which refers to jQuery 1.8.3. **Comparison of Options** The benchmark compares the performance of different jQuery versions: * jQuery 1.8.3 ($jq18) * jQuery 1.9.1 ($jq19) * jQuery 1.12.14 ($jq112) * jQuery 2.2.4 ($jq224) * jQuery 3.2.1 ($jq321) * jQuery 3.6.4 ($jq364) * A variant of jQuery 3.6.4 called "S" ($jq364s) **Pros and Cons** Each version has its own strengths and weaknesses: * **jQuery 1.x**: These versions are older and have been deprecated. They might be slower and less feature-rich compared to newer versions. * **jQuery 2.x**: Introduced in 2012, these versions were designed for modern web development. They added new features like promises and async requests, but might not be as efficient as newer versions. * **jQuery 3.x**: Released in 2016, these versions brought significant performance improvements and reduced memory usage. They also introduced new features like async requests and improved DOM manipulation. * **jQuery 4.x**: The latest stable version, released in 2020, includes further performance improvements and bug fixes. **Browser-Specific Considerations** The benchmark results show that Firefox 111 is the fastest browser among the ones tested. This might be due to its optimized JavaScript engine and specific optimizations for jQuery. In general, modern browsers like Chrome, Edge, and Firefox have better performance and faster execution times compared to older browsers or browsers with limited JavaScript capabilities. **Test Results** The latest benchmark results show that: * jQuery 3.2.1 ($jq321) is the fastest version. * jQuery 3.6.4 ($jq364) is slower than $jq321 but still relatively fast. * The "S" variant of jQuery 3.6.4 ($jq364s) is the slowest among all versions. Keep in mind that these results are specific to Firefox 111 and might not be representative of other browsers or environments. In conclusion, the benchmark highlights the importance of using modern JavaScript libraries like jQuery and ensuring compatibility with different browsers and devices for optimal performance.
Related benchmarks:
Jquery versions Benchmarch
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?